Closed (fixed)
Project:
Translation Management Tool
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2013 at 13:17 UTC
Updated:
10 Mar 2013 at 17:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirComment #2
miro_dietikerI guess christophe is/was working on this.
Comment #3
cgalli commentedAdded color legends to the help area, implemented for 'node sources' and 'entity sources'
The patch has not touched a windows editor so the endings should be ok...
Comment #4
berdirThanks!
There are quite a lot of views bulk operation changes in the export view. I assume that's because the version changed or something and not because you made any changes?
The @param and @return should be removed.
Unecessary empty line.
As discussed, the problem with this is that the documentation for the entity and node modules is in the base module.
So if i18n finally adds a UI too, we will have to add it here as well.
Let's do this instead:
Move the code below into a helper function, something like tmgmt_ui_color_legend(), implement this hook for tmgmt_entity_ui and tmgmt_node_ui and call that function.
This part is not translatable.
The title here doesn't seem to make sense? And it isn't translatable, but I think we can just remove it.
Comment #5
cgalli commentedHere we go again.
- Only removed the footer from the view
- split the hook_help into three parts as suggested
- corrected errors
Comment #6
berdirComment #7
berdirThanks, commited.
Comment #8
miro_dietikerLooks great! Some extra notes:
Now we're floating contents of the hook_help... Finally we expect all the elements to be default-wrapped in the admin theme. Note we cannot really guarantee the sequence and thus floating is quite risky when considering other admin themes.
All legend labels have the exact same class. I guess somehow the color should also go into the outer class definition to allow better custom theming.
Comment #9
berdirThat was too fast then.
Yes. Suggestion: Make the css selector so specific that it only matches if it's placed in the region where we want it to be floated. Make sure that things don't break when help is moved into a sidebar or below the main content. Maybe even put the css into a .seven.css and only apply it when the active theme is seven.
Comment #10
miro_dietikerCan you please provide an update?
Comment #11
cgalli commentedThe right floating happens only in theme seven and only in the content region
removed the title to save space
Comment #12
cgalli commentedAdded formatting for entity sources as well.
Load css files in color legend function
Replaces the path in #11
Comment #13
berdirglobals are usually defined at the top of a function.
Missing a space after if and { }
Comment #14
cgalli commentedfixed
Comment #16
berdir#14: Add-color-legends-to-the-entity-source-view-1900916-14.patch queued for re-testing.
Comment #17
berdirThanks, committed with a few coding style fixes.