summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Extract repeated logic into #avatar_icon_for.42800-change-usage-of-avatar_iconAndreas Brandl2018-02-131-0/+12
| | | | | | This essentially allows to pass both user and email, so that we can either prefer the user to retrieve the avatar or (if user is not present) fall back to the email lookup.
* Remove generic #avatar_icon helper.Andreas Brandl2018-02-131-8/+0
|
* Refactor and split ApplicationHelper#avatar_icon.Andreas Brandl2018-02-131-7/+17
| | | | | | | When we don't use the original `ApplicationHelper#avatar_icon` anymore, we can just remove it (and its specs). Closes #42800.
* Make default_avatar return a full path.Felix Geyer2018-01-281-1/+1
| | | | | | | | | Callers expect a URL. This fixes the avatars in commit lists when a user has no avatar and Gravatar is disabled. Closes #38715
* Resolve "Decouple multi-file editor from file list"Tim Zallmann2017-12-211-1/+1
|
* Build the locale path with an `_` instead of a `-`Bob Van Landuyt2017-10-181-0/+4
| | | | | | | | | The locale code is turned into an asset path with an underscore instead of a dash. The language codes are transformed by `I18n.locale` into a code with a dash. But the resources for translating are always stored in a path using a `_` separating the language and the region code.
* Clean up new navigation templatesPhil Hughes2017-09-061-4/+0
|
* Merge branch 'enable-new-navigaton-by-default' into 'master'Tim Zallmann2017-09-011-1/+1
|\ | | | | | | | | Enable the new navigation by default See merge request !13387
| * Merge branch 'master' into enable-new-navigaton-by-defaultenable-new-navigaton-by-defaultPhil Hughes2017-08-301-1/+1
| |\
| * | Enable the new navigation by defaultPhil Hughes2017-08-291-1/+1
| | |
* | | `current_application_settings` belongs on `Gitlab::CurrentSettings`Sean McGivern2017-08-311-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initializers including this were doing so at the top level, so every object loaded after them had a `current_application_settings` method. However, if someone had rack-attack enabled (which was loaded before these initializers), it would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't have that method. To fix this: 1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need `Object.new.current_application_settings` to work. 2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it like that in several places. 3. Change the initializers to use that new form.
* | replace `is_edited?` with `edited?`Maxim Rydkin2017-08-291-1/+1
|/
* Merge branch 'master' into ideMike Greiling2017-08-071-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (86 commits) Show all labels 33874 confidential issue redesign Exclude merge_jid on Import/Export attribute configuration Resolve "User dropdown in filtered search does not load avatar on `master`" Re-add column locked_at on migration rollback Group-level new issue & MR using previously selected project [EE Backport] Update log audit event in omniauth_callbacks_controller.rb more eagerly bail when the state is prevented Move locked_at removal to post-deployment migration Add class to other sidebars Improve mobile sidebar reduce iterations by keeping a count of remaining enablers Store & use ConvDev percentages returned by Version app Store MergeWorker JID on merge request, and clean up stuck merges Backport changes in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2551 to CE DRY up caching in AbstractReferenceFilter Update CHANGELOG Add CHANGELOG entry Fix html structure Removes test for removed behavior Port form back to use form_tag ...
| * Remove JS flicker on page load; UI tweaksAnnabel Dunstone Gray2017-08-071-0/+4
| |
* | Disable new repo on project showLuke "Jared" Bennett2017-08-041-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into ideLuke "Jared" Bennett2017-07-311-1/+5
|\ \ | |/
| * Moves the Performance Bar to the top instead of being at the bottomRémy Coutable2017-07-311-1/+5
| |
* | Add groundwork for feature flagLuke "Jared" Bennett2017-07-281-0/+4
|/
* Enables the option in user preferences to turn on the new navigationenable-new-navigation-option-in-preferencesPhil Hughes2017-07-041-4/+0
|
* Split up MergeRequestsControllerdm-merge-request-creations-controllerDouwe Maan2017-06-281-4/+1
|
* fixed scss-lint jobPhil Hughes2017-06-211-0/+4
| | | | only display the toggle setting in development env for now
* Top navigation redesignPhil Hughes2017-06-211-0/+4
| | | | | | | Start of the new navigation by redesigning just the top navigation menu. This is only shown when a cookie is set. Part of #32794
* Fix avatar images in pipeline emailsfix-email-avatarsSean McGivern2017-06-201-2/+2
|
* Use the same time format as beforeBob Van Landuyt2017-06-151-1/+1
|
* Translate time tooltips.Bob Van Landuyt2017-06-151-2/+2
| | | | Let the backend do the translation.
* Help landing page customizationsRobin Bobbitt2017-06-141-0/+4
|
* Merge branch 'fix-realtime-edited-text-for-issues-9-3' into 'master'Phil Hughes2017-06-051-1/+1
|\ | | | | | | | | Port fix-realtime-edited-text-for-issues 9-2-stable fix to master. See merge request !11478
| * Merge remote-tracking branch 'origin/master' into ↵Luke "Jared" Bennett2017-06-021-1/+1
| |\ | | | | | | | | | fix-realtime-edited-text-for-issues-9-3
| * | Port fix-realtime-edited-text-for-issues 9-2-stable fix to master.Luke "Jared" Bennett2017-05-311-1/+1
| | |
* | | Add Conversational Development Index page to admin panelTaurie Davis, Simon Knox and Adam Niedzielski2017-06-011-2/+2
| |/ |/|
* | Fixed the show_user_callout methoduser-callout-dismissed-method-renamePhil Hughes2017-05-301-1/+1
|/
* Merge branch '31386-profile-fix-externallinks' into 'master' Douwe Maan2017-05-161-0/+18
|\ | | | | | | | | | | | | Resolve "Make Twitter Link on Profile page useable by fixing wrong target URL's" Closes #31386 See merge request !10931
| * Fixed Regex(es)Tim Zallmann2017-05-111-2/+2
| |
| * Fixing Static Analysis Fail with IndentationTim Zallmann2017-05-081-2/+1
| |
| * Created Application Helpers based on suggestion for easier parsingTim Zallmann2017-05-081-0/+19
| |
* | Use relative paths for group/project/user avatarsblackst0ne2017-05-101-1/+1
|/
* Change 'exclude_author' paramblackst0ne2017-05-041-2/+2
|
* Add last_edited_at and last_edited_by attributesblackst0ne2017-05-041-7/+7
|
* Add author to 'Edited time ago by ...' messageblackst0ne2017-05-041-1/+1
|
* Move some methods from ApplicationHelper to MarkupHelperToon Claes2017-04-271-32/+0
|
* Refactored the user callout classPhil Hughes2017-03-241-0/+4
| | | | | | | | Instead of the JS being in charge of the HTML, the HAML now handles it. The HAML can then check the cookie & show it needed. It also allows the HAML access to the paths so we don't have to pass that through. Closes #29955
* Merge branch 'format-timeago-date' into 'master' Jacob Schatz2017-03-051-1/+1
|\ | | | | | | | | | | | | Formats timeago dates to be more friendly Closes #27537 See merge request !9145
| * Formats timeago dates to be more friendlyPhil Hughes2017-02-101-1/+1
| | | | | | | | | | | | | | | | Formats the timeago timestamps to be a short date. This will only be visible on slower connections whilst the JS is loading, after the JS has loaded it will be turned into a timeago string Closes #27537
* | Fix code for copsDouwe Maan2017-02-231-5/+6
| |
* | Enable Style/ConditionalAssignmentDouwe Maan2017-02-231-3/+3
| |
* | Add active_when helperSemyon Pupkov2017-02-151-0/+9
|/ | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/24036
* replace `find_with_namespace` with `find_by_full_path`Adam Pahlevi2017-02-031-1/+1
| | | | add complete changelog for !8949
* Add username to page_filter_pathClement Ho2017-01-091-0/+2
|
* Replace jQuery.timeago with timeago.jsClement Ho2016-11-071-11/+7
|
* Cache the issuable counters for 2 minutesRémy Coutable2016-09-301-23/+0
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>