summaryrefslogtreecommitdiff
path: root/app/helpers/page_layout_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42GitLab Bot2020-11-191-2/+49
|
* Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42GitLab Bot2020-10-211-0/+8
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-0/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-171-1/+0
|
* Fix page_description helper performance62116-performance-issue-502-errors-on-rendering-of-issues-with-heavy-markdown-contentsSean McGivern2019-05-221-1/+2
| | | | | | | | | | | | | | | This helper is used for extracting part of the issue / MR / whatever description for use in the description meta tag: 1. To do that, we look at the source of the Markdown description. 2. We then strip out all HTML tags. 3. And then take the first 30 words. Doing that can be really slow - especially as Markdown is supposed to be treated as plain text. There are many better ways to do this, but the immediate performance fix is to swap steps 2 and 3. This does mean that the description may be less than 30 words (or even empty), but it is much faster when the description is very long.
* Fix typos in comments and specsGeorge Tsiolis2018-11-011-1/+1
|
* Enable frozen string for app/helpers/**/*.rbgfyoung2018-09-061-6/+8
| | | | Partially addresses #47424.
* call Gitlab::Favicon.status in serializerAlexis Reigel2018-06-051-1/+1
| | | | | | | | | this ways we can keep the `lib/gitlab/ci/status/*` classes to return the bare favicon name as it was before. also the favicon uploader versions are now have the same names as the stock favicons (+ `favicon_` prefix), which makes working with the status names easier.
* extract favicon logic to lib classAlexis Reigel2018-06-051-5/+1
|
* use custom main faviconAlexis Reigel2018-06-051-0/+1
|
* Update styling and use Gitlab::Utils.to_booleanEric Eastwood2018-03-271-1/+2
|
* Merge branch 'master' into add-canary-faviconEric Eastwood2018-03-271-2/+8
|\
| * Add Page-Title header to tree and blob JSON endpointsDouwe Maan2017-09-261-1/+1
| |
| * removed show_new_nav? referencesbreadcrumbs-improvementsPhil Hughes2017-09-061-5/+1
| |
| * Merge branch 'master' into breadcrumbs-improvementsPhil Hughes2017-09-061-1/+1
| |\
| | * Clean up new navigation templatesPhil Hughes2017-09-061-1/+1
| | |
| * | fixed up JS to use a js-* classPhil Hughes2017-09-061-2/+4
| | | | | | | | | | | | fixed up Ruby based on review
| * | updated a bunch of breadcrumb titlesPhil Hughes2017-08-181-1/+5
| |/ | | | | | | [ci skip]
| * use `.last` insteadPhil Hughes2017-07-141-1/+1
| |
| * moved `@breadcrumb_title` out of the HAML & into a helper methodPhil Hughes2017-07-121-1/+1
| |
| * moved declaration of `breadcrumb_title` into `page_title` methodPhil Hughes2017-07-121-0/+4
| | | | | | | | `breadcrumb_title` is then overriden when needed
* | Add temporary CANARY env vars to be set in ↵Luke "Jared" Bennett2017-06-271-1/+3
|/ | | | Kubernetes-with-canary.gitlab-ci.yml and used in page_layout_helper.rb
* dev favicon is blue, not purple27281-deviconSimon Knox2017-02-161-1/+1
|
* override favicon for development to find tabs more easilySimon Knox2017-02-161-0/+4
|
* ensure the 'fixed layout' preference is honored whenever possibleMike Greiling2016-09-201-6/+2
| | | | see #22343 for issue description
* Enable Style/SpaceAfterComma Rubocop coprubocop/enable-space-after-copsGrzegorz Bizon2016-06-291-1/+1
|
* Implement top navigation concept for profile areaDmitriy Zaporozhets2016-04-191-0/+8
| | | | | | | | Main idea is to keep left sidebar static so user is not confused by changing context. Instead we put changing navigation with changing content in one main block Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Don't override issue page description in project layout.Douwe Maan2016-01-061-8/+3
|
* Make `page_description` less magical :sparkles:Robert Speicher2016-01-051-11/+1
|
* Use `User#avatar_url` instead of `avatar_icon` helperRobert Speicher2016-01-051-6/+4
|
* Add Open Graph data for group, project and commit.Douwe Maan2015-12-251-0/+2
|
* Add support for `twitter:label` meta tagsrs-opengraphRobert Speicher2015-12-241-0/+24
|
* Truncate page_description to 30 wordsRobert Speicher2015-12-241-2/+2
|
* Account for `@project.description` being nilRobert Speicher2015-12-231-1/+1
|
* Add page descriptions and imagesRobert Speicher2015-12-231-0/+50
| | | | | | | | | | A limited number of pages have defined their own descriptions, but otherwise we default to the Project's description (if `@project` is set), or the old `brand_title` fallback. The image will either be the uploaded project icon (never a generated one), the user's uploaded icon or Gravatar, or, finally, the GitLab logo.
* Separate page title segments by middot rather than pipeDouwe Maan2015-12-021-1/+2
|
* improved code style and layout option namingPeter Göbel2015-10-051-1/+1
|
* added user preference to change layout widthPeter Göbel2015-10-051-1/+1
|
* Fix fixed layoutDmitriy Zaporozhets2015-09-101-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Style panels and add blank containerDmitriy Zaporozhets2015-09-091-0/+22
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Limit content width for big screens except certain pagesDmitriy Zaporozhets2015-08-261-0/+8
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add helpers for header title and sidebar, and move setting those from ↵Douwe Maan2015-05-011-0/+26
controllers to layouts.