aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/layouts
AgeCommit message (Collapse)Author
2018-05-23Refs #7118; Fix collapsible menusZog
2018-05-17Change the place of configuration links in the left menuLuc Donnet
2018-05-09Refs #6961; Update Workbench#editZog
- Update the form - Use policies and update the seeds accordingly - Add a link in the navbar(s)
2018-05-07Refs #6960; Add a view to set the controls associated to each workbenchZog
2018-04-27Add Chouette favicon6627-add-chouette-faviconTeddy Wing
Adds a favicon to the site to respond to these errors: ActionController::RoutingError (No route matches [GET] "/favicon.ico"): Using `favicon_link_tag` allows us to get the image from the asset pipeline, which makes it easier to update if necessary, since browsers tend to cache the default `/favicon.ico` indeterminably (source: http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper.html#method-i-favicon_link_tag). According to some Stack Overflow posts I've been reading, it looks like it's advisable to put the `favicon.ico` file in both `/assets/images/` and `/public/`: - https://stackoverflow.com/questions/15687506/actioncontrollerroutingerror-no-route-matches-get-favicon-ico-in-rails#15688041 - https://stackoverflow.com/questions/11071445/favicon-in-ruby-on-rails-application This way, you can serve the favicon from the asset pipeline, but if any requesters try to get `/favicon.ico`, the server will respond with the image instead of an error. To be honest, when I was testing locally, I couldn't get the icon in `/public` to display, both without a `link` tag and with the following `link` tag: / application.html.slim / ... link href='/favicon.ico' rel='shortcut icon' As a result, I'm adding the image to `/public` with fingers crossed that it's going to work if requested. I generated the `favicon.ico` file with a 256x256px PNG supplied by Cyrielle in the Redmine ticket and the following ImageMagick command: $ convert -resize x16 -gravity center -crop 16x16+0+0 \ Logo_Chouette-256x256.png -flatten -colors 256 favicon.ico (Copied from: https://stackoverflow.com/questions/3185677/converting-gifs-pngs-and-jpgs-to-ico-files-using-imagemagick) Refs #6627
2018-04-27Refs #6572; New Referential#Show for noredy referentialsZog
2018-04-19Add layout for devise views, Fix i18n on menu, Delete unused elements Refs ↵Luc Donnet
#6545 @1
2018-04-18Disable workgroup offer link. Keep time tables and purchase windows for ↵Alban Peignier
referential links. Capitalize Line/Network/Company/StopArea links. Refs #6545
2018-04-18Use config/locales/zzz-stif.yml to store STIF i18n values. Refs #6545Alban Peignier
2018-04-15Add generic navbar and fix codifligne, reflex navigation Refs #6545 @8Luc Donnet
2018-04-13Ref #6242 Add changes to navbar menu and dashboardcedricnjanga
2018-03-29Refs #6156 Update Nav panel translationscedricnjanga
2018-03-16Use new helper in page headerZog
2018-03-12Refs #6133; First Crud for exportsZog
2018-02-22Test feature :change_locale to display language switch. Refs #5938Alban Peignier
2018-02-22Refs #5398; Add a locale selector menu itemZog
2018-02-20Refs #5863 @6h; Remove workbench id from the querystringZog
Infer it when possible, and use a nested otherwise
2018-02-09Merge branch 'master' into 4126-add-i18n-jsLuc Donnet
2018-02-09Refs #4126 @6h; Add i18n to JSZog
2018-02-09Refs #5669; Add a preview for snapshots for easier debuggingZog
2018-01-31Add a toolbar for devs to easily manage permissions and featuresZog
2018-01-30Merge branch 'master' into 5683-add_workgroup_id_to_calendarscedricnjanga
2018-01-25AF83::Decorator::Link: Delete `#default_class`Teddy Wing
This method was overriding classes that were added by `#add_class` in addition to those added by `#class`. Obviously, the argument to `#add_class` should be appended to the default. That seemed like a pain to do, so instead I'm getting rid of the concept of a default class. Instead, we're going to force all links to use the template-defined styles for now. That goes in line with Luc's desire to be more consistent in the links, as he stated yesterday. Refs #5586
2018-01-25AF83::Decorator::Link: Change #class? to #default_classTeddy Wing
Instead of checking for an existing class and then setting the class, provide a method to set a default class when one hasn't been defined. This does effectively the same thing but moves the condition inside the method. Thanks Johan for the suggestion! Refs #5586
2018-01-25Imports#index: Move 'New import' button to action linksTeddy Wing
Begin the process of converting the `ImportDecorator` to the new action links interface. For now, only the "New import" button on the top right of the index page is converted. The rest of the links are commented out for now and will be treated in a subsequent commit. Add a new `#class?` method to `AF83::Decorator::Link` that tells callers whether a CSS class has been defined on the link. This allows us to determine whether we should force a class or use the one provided in `_page_header.html.slim`. We need a way to specify the class of the link in the header because the "New import" button is supposed to be blue (`.btn-primary`), but the default for primary action links is white. Refs #5586
2018-01-25Refs #5586 @2h; Fix specsZog
2018-01-25Refs #5586 @1h; Refactor ReferentialDecoratorZog
Plus: - Fix a bug on `html_options` in AF83::Decorator::Link - Add a `t` helper in AF83::Decorator to handle i18n
2018-01-25Refs #5586 @1h; Ensure retrocompatibilityZog
And remove snapshots (we don't need it anymore)
2018-01-25Refs #5586 @2h; Refactor the whole thingZog
We now have a ModelDecorator and an "instance" decorator, all in the same file, with the same API.
2018-01-25Refs #5586 @2h; Better implementation of groupsZog
Used it in Lines#index and Lines#show, probably broke everything else
2018-01-23First draft for including calendars into workgroup for having appropriate ↵cedricnjanga
scoping
2017-12-20Merge pull request #168 from af83/5348_clickable_brandnameAlban Peignier
Add link_to root_path on brandname nav element. Refs #5348
2017-12-20Add link_to root_path on brandname nav elementXinhui
Refs #5348
2017-12-18Refs #5331; Show user's name ...5331-display-users-nameZog
... instead of user's username in the top bar
2017-12-14Refactor mailer layout. Refs #5303Alban Peignier
2017-12-01Fix time_table#show title using commentXinhui
2017-12-01Fix css on header page-action interact with fixed header when scrollingXinhui
2017-12-01Fix page_header_actions on calendar#showXinhui
Refs #5151
2017-11-28Refactoring pageheaderXinhui
2017-11-28Display last_editorXinhui
2017-11-28Replace pageheader by render partialXinhui
2017-11-28Refactoring helper page_header into partialXinhui
2017-11-26Provide empty main_nav_left_content custom view. Refs #4735Alban Peignier
2017-11-26Remove base part of the nav menu in STIF main_nav_left_content. Refs #4735Alban Peignier
2017-11-26Update STIF navigation left menu. Refs #4735Alban Peignier
2017-11-26Create custom view for STIF main nav left. Refs #4735Alban Peignier
2017-11-03Showing root breadcrumb on root_pathXinhui
Refs #4820
2017-11-03Refs: #4774;Robert
DB Setup for specs
2017-10-18Replace breadcrumb rendering in viewsXinhui
2017-10-09Working standard webpacker configcedricnjanga