Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UX] Change the page title for the detailed view of a log entry to "Log entry details"... #1684

Closed
klonos opened this issue Mar 3, 2016 · 11 comments · Fixed by backdrop/backdrop#3062

Comments

@klonos
Copy link
Member

klonos commented Mar 3, 2016

...or something that makes better sense. I know this is a very minor nit, but having it plain "Details" does not tell me anything by looking at the tab when I have multiple open in my browser.

I would even better like it if we were even more verbose and had the title include the log entry number. Like so: "Log entry 123 details"

...that would account for cases where one has multiple such entries pages opened in multiple tabs in their browser:

backdrop-log_entry_pages_opened_in_multiple_browser_tabs-title_details_for_all_of_them

@ghost
Copy link

ghost commented Feb 3, 2020

Agreed. Here's a PR: backdrop/backdrop#3062

Page title of /admin/reports/event/40759 changed from 'Details' to 'Log message details (#40759)'.

@findlabnet
Copy link

'Log message #40759 details', or 'Details of log message #40759' looks better, isn't?

@herbdool
Copy link

herbdool commented Jun 7, 2020

Has relevant test failure.

@ghost
Copy link

ghost commented Feb 25, 2022

PR updated, tests passing.

@klonos
Copy link
Member Author

klonos commented Feb 25, 2022

Is 'title' in hook_menu() entries automatically being passed through t()? I think so, but I just want to make sure.

@klonos klonos assigned ghost Feb 25, 2022
@indigoxela
Copy link
Member

Is 'title' in hook_menu() entries automatically being passed through t()?

Yes it is.

@klonos
Copy link
Member Author

klonos commented Feb 25, 2022

Thanks @indigoxela 🙏🏼 ...I should have checked myself really:

  • "title callback": Function to generate the title; defaults to t(). If you require only the raw string to be output, set this to FALSE.
  • "title arguments": Arguments to send to t() or your custom callback, with path component substitution as described above.

@klonos
Copy link
Member Author

klonos commented Feb 25, 2022

'Log message #40759 details', or 'Details of log message #40759' looks better, isn't?

I think that Log message #123 details is better. (I actually think that we could drop the "details" bit).

@ghost
Copy link

ghost commented Feb 26, 2022

PR updated:

image

@ghost ghost removed their assignment Dec 5, 2022
@bugfolder
Copy link

Tested the PR.

Before:

image

After:

image

WFM (and a nice improvement!). Code reviewed, LGTM.

@laryn
Copy link
Contributor

laryn commented Oct 6, 2023

Thanks @klonos for filing this all those years ago, @BWPanda for the fix, and @bugfolder, @herbdool, @findlabnet, and @indigoxela for your review and inputs. Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants