Several admin pages contains a table where each row has a number of “operation” links in the right-most columns. The formatting of these links is not consistent throughout Drupal. The first letter is sometimes written in uppercase and sometimes in lowercase (“edit” vs. “Edit”). Sometimes each operation is contained in a <td> of their own, and sometimes all operations are contained in the same <td> (this causes a more compact layout).

The attached screenshot shows the different styles.

Comments

c960657’s picture

Status: Active » Needs review
StatusFileSize
new9.3 KB

This changes the texts to lower-case and puts each operation in its own table cell.

I'm not sure if I prefer lower-case instead of upper-case, but the reverse change is quite big, so I'd like some opinions before I change them all. Most other command labels are upper-case, e.g. button labels, local task labels, the "Add new content" link, etc.

c960657 requested that failed test be re-tested.

c960657’s picture

StatusFileSize
new9.34 KB

Reroll.

jhodgdon’s picture

Status: Needs review » Needs work

Hmmm...

So it looks like the only place you are seeing upper-case operations is on the Modules listing page, correct? I'm not sure I'm in agreement that these are the same type of operations as "add" "edit" and "manage fields", and I think they can be left as upper-case.

I'm also not sure I like the way you put everything in cells -- it looks rather hackish. Is there a problem you were trying to solve there? And what will happen if someone lacks permission to do some of the operations?

c960657’s picture

Issue tags: +Needs usability review

So it looks like the only place you are seeing upper-case operations is on the Modules listing page, correct? I'm not sure I'm in agreement that these are the same type of operations as "add" "edit" and "manage fields", and I think they can be left as upper-case.

Okay, I agree that the links in admin/config/modules are not operations in the same sense as “edit” and “delete” links elsewhere. So perhaps we should change the “Operations” header instead to e.g. “Links”?

I'm also not sure I like the way you put everything in cells -- it looks rather hackish. Is there a problem you were trying to solve there?

This is the approach used in most of these tables, e.g. on admin/structure/menu, admin/structure/taxonomy, and admin/structure/types. I don't think it is particularly hackish, or that using a ul/li inside a td is a lot more semantic.

The problem I am trying to solve here is the inconsistency. There are currently two different approaches in core—I suggest we choose one and use only that unless there is a valid reason for having both.

And what will happen if someone lacks permission to do some of the operations?

The link will be omitted. This may happen on admin/content, e.g. if a user only has access to edit his own nodes. With the cell solution, the remaining operations will still line up, i.e. all “delete” links will appear in the same column—this is not the case with the ul/li solution.

The operation links (“edit”, “delete”, etc.) are almost the only text strings in core in all lower-case, while all other action labels (button labels, local task labels, the "Add new content" link, etc.) are in upper-case. What is the reasoning behind this? Should all td content begin with a lower-case first letter? On admin/content, the “Type” column contains e.g. “Article” (i.e. upper-case), but the “Status” column contains e.g. “published” (lower-case)—that seems inconsistent. I am not sure, but it looks like we need to decide on a UI principle that can be used consistently throughout core.

I think I prefer using upper-case everywhere, though I don't mind using lower-case in some places as long as the choice between upper-case or lower-case is based on a rule rather than being chosen on a case by case basic based on some fuzzy gut-feel of the developer.

jhodgdon’s picture

I also prefer upper-case everywhere, but I wasn't involved in the decision to make the operations lower case. I don't know who made that decision, but there's no way it's going to change now.

So I have no problem with having TDs. It's just that the code you used to implement it looked a bit flaky (but I haven't looked at how the other places were implemented, so maybe they are flaky too). There was a lot more logic there than when they were just ULs.

c960657’s picture

Status: Needs work » Needs review
StatusFileSize
new6 KB

Rerolled without the changes to admin/modules.

The upper/lower-case issue in operation links is probably D8 material.

cosmicdreams’s picture

Issue tags: -Needs usability review

#7: operations-3.patch queued for re-testing.

retester2010’s picture

#7: operations-3.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +Needs usability review

The last submitted patch, operations-3.patch, failed testing.

yoroy’s picture

Version: 7.x-dev » 8.x-dev
Issue tags: -Needs usability review +Usability
c960657’s picture

The upper-case/lower-case issue is handled in #421118: [Meta] Standardize capitalization on actions.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pameeela’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)
Issue tags: +Bug Smash Initiative
Related issues: +#421118: [Meta] Standardize capitalization on actions