summaryrefslogtreecommitdiff
path: root/app/helpers
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Replace obvious tooltips. Fix line-height for top navDmitriy Zaporozhets2015-09-031-1/+0
| | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Redesign activity feed on dashboard and project pagesDmitriy Zaporozhets2015-09-031-6/+4
| |/ | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * Remove PreferencesHelper include from GitlabMarkdownHelperrs-cleanup-redcarpet-rendererRobert Speicher2015-09-011-2/+0
| |
| * Make sure the `gfm` helper passes the required optionsRobert Speicher2015-08-311-1/+9
| | | | | | | | This adds some duplication, but this helper is temporary.
| * Make `gfm` delegate to `Gitlab::Markdown.gfm` instead of `markdown`Robert Speicher2015-08-311-1/+1
| | | | | | | | | | Some usages of the `gfm` helper depend on the text not being rendered as standard Markdown. Ugh.
| * Fix context options in `markdown` helperRobert Speicher2015-08-311-5/+5
| | | | | | | | We need to send `path`, not `requested_path`.
| * Add a temporary `gfm` helper that just delegates to `markdown`Robert Speicher2015-08-271-0/+6
| | | | | | | | | | Some views are still calling `gfm` directly. We'll need to update them to instead call `markdown` with a `pipeline: ...` argument.
| * Restore the forwarded HTML options in link_to_gfmRobert Speicher2015-08-271-0/+5
| |
| * Decouple Gitlab::Markdown from the GitlabMarkdownHelperRobert Speicher2015-08-271-24/+10
| | | | | | | | | | This module is now the sole source of knowledge for *how* we render Markdown (and GFM).
| * Merge branch 'rs-remove-user-color-scheme-class' into 'master'Douwe Maan2015-08-272-25/+4
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply syntax highlighting to fenced code blocks client-side Instead of applying the syntax highlighting scheme class to these blocks server-side, we use Javascript and Gon to apply the user's color scheme (or the default) client-side. This will make it easier to cache these blocks in the future because they're no longer state-dependent. See merge request !1203
| | * Re-add user_color_scheme helperRobert Speicher2015-08-261-1/+5
| | | | | | | | | | | | Update PreferencesHelper specs
| | * Remove user_color_scheme_classRobert Speicher2015-08-252-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of rendering this value server-side, we use Javascript and Gon to apply the user's color scheme (or the default) to any syntax highlighted code blocks. This will make it easier to cache these blocks in the future because they're no longer state-dependent.
| | * Add Gitlab::ColorSchemes moduleRobert Speicher2015-08-251-23/+2
| | | | | | | | | | | | | | | Very similar to Gitlab::Theme, this contains all of the definitions for our syntax highlighting schemes.
* | | CLeanup CI helpers since we dont use oauth any moreDmitriy Zaporozhets2015-09-111-32/+0
| | |
* | | Fix ci commits features specsDmitriy Zaporozhets2015-09-111-1/+5
| | |
* | | remove gitlab_ci configValery Sizov2015-09-102-4/+4
| | |
* | | integration with gitlab authValery Sizov2015-09-091-1/+1
| | |
* | | Move helpers back to original directoryDmitriy Zaporozhets2015-09-0984-3290/+3138
| | |
* | | Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-gDouwe Maan2015-08-262-0/+43
|\ \ \ | |/ /
| * | Limit content width for big screens except certain pagesDmitriy Zaporozhets2015-08-261-0/+8
| |/ | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Update gitignore, change literal DB table names, fix errors, fix fontawesomeDouwe Maan2015-08-262-4/+4
| |
* | Groundwork for merging CI into CEDouwe Maan2015-08-2597-3196/+3676
|/
* Merge branch 'reply-by-email' into 'master'Robert Speicher2015-08-221-1/+1
|\ | | | | | | | | | | | | | | | | | | Reply by email Fixes #1360. It's far from done, but _it works_. See merge request !1173
| * Remove weirdness.Douwe Maan2015-08-201-1/+1
| |
* | Merge branch 'fix-email-autocomplete' into 'master'Douwe Maan2015-08-211-1/+3
|\ \ | |/ |/| | | | | | | | | | | | | | | Fix bug preventing invite by e-mail This was broken in 70f5291808 as a result of introducing the ability to filter by current user. Closes #2320 See merge request !1181
| * Fix bug preventing invite by e-mailStan Hu2015-08-211-1/+3
| | | | | | | | | | | | This was broken in 70f5291808 as a result of introducing the ability to filter by current user. Closes #2320
* | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2015-08-202-1/+9
|\ \
| * | Rebuild navigation for dashboardDmitriy Zaporozhets2015-08-202-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * projects from explore page are available from dashboard * use dashboard sidebar for both logged in and not users * move explroe projects under projects tab * move explore groups under groups tab * move public snippets under snippets tab Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | Refactor sidebar navigation for dashboardDmitriy Zaporozhets2015-08-201-0/+2
| |/ | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Import sources: settings in the admin interfaceArtem Sidorenko2015-08-201-0/+17
|/
* Move command line insturction out of mr widgetDmitriy Zaporozhets2015-08-111-0/+10
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'revert-satellites' into 'master' Dmitriy Zaporozhets2015-08-111-10/+0
|\ | | | | | | | | | | | | | | | | Revert satellites Return satellites to master for 7.14 We remove satellites in next release (8.0) See merge request !1136
| * Revert "Merge branch 'improve-merge-requests' into 'master' "Dmitriy Zaporozhets2015-08-111-10/+0
| | | | | | | | | | This reverts commit 4773f38e28c91dbbb6e5e385e0c403877298bfed, reversing changes made to 0d5d80b735eb18ae79eb2bfe26c08896d53db414.
* | Add README to list of files in project page if activity feed setting in useStan Hu2015-08-101-24/+20
|/ | | | Closes #2044
* Merge branch 'improve-merge-requests' into 'master' Dmitriy Zaporozhets2015-08-071-0/+10
|\ | | | | | | | | | | | | | | | | | | | | Improve merge requests - [x] Fetch merge request refs by IID - [x] Ability to fetch any merge request - [x] Link commits and diffs in merge request to target project - [x] Improve merge request UI and command line instructions - [x] Check merge request widget loading test coverage double See merge request !1115
| * Move command line insturction out of mr widgetDmitriy Zaporozhets2015-08-071-0/+10
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Merge branch 'master' into comment-updated-byDouwe Maan2015-08-061-4/+40
|\ \ | |/
| * Show buttons to add license, changelog and contribution guide if they're ↵Douwe Maan2015-07-301-4/+40
| | | | | | | | missing.
* | Show who last edited a comment if it wasn't the original authorDouwe Maan2015-07-303-32/+2
|/
* Add HTMLGitlab formatterStefan Tatschner2015-07-291-1/+1
| | | | | | | | | This custom formatter for rouge is needed to generate HTML output specifically for gitlab. Since its usecase is mostly suitable for gitlab it had been rejected upstream: https://github.com/jneen/rouge/pull/268 Thanks a lot to @stanhu, @jneen and @tsigo for review!
* Replace Rugments with RougeStefan Tatschner2015-07-292-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have mainly created the rugments fork for the purpose of improving gitlab's highlighting. Nowadays IMO it works way better than the old highlight.js solution. But the development is stuck on my side because of a couple of personal reasons: * I have finished my studies; last months I was writing my master thesis. So there was a huge time problem. I am sorry for that. * I had to move to Munich due to getting a (paid) job. Searching a flat here is horrible... :) * Last but not least, maintaining the same code base in two seperate projects is a mess. I have decided to switch back to rouge due to several reasons: * In the beginning I was quite motivated, but since I start working on my new job next week, the best solution IMO is switching back to upstream rouge. * Rouge is continously improving: https://github.com/jneen/rouge/blob/master/CHANGELOG.md http://rouge.jneen.net/ * There should be absolutely no regressions with this change. Most likely this pull request will almost fix some minor bugs. * One less gem in gitlab is a good thing. since Gitlab is quite a huge bundle of gems. Reducing complexity should be a major milestone. Thanks a lot to @stanhu and @jneen for the review!
* Merge branch 'fix-error-500-when-no-head' into 'master'Valery Sizov2015-07-241-1/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix error 500 when no HEAD is available Steps to reproduce: 1. Create a project with a README 2. In the actual remote, type: `git symbolic-ref HEAD refs/heads/nowhere` 3. Check that HEAD is gone via `git ls-remote .` 4. Go to the projects page and see the Error 500 Error: ``` NoMethodError - undefined method `sha' for nil:NilClass: app/helpers/projects_helper.rb:281:in `readme_cache_key' app/views/projects/_readme.html.haml:10:in `_app_views_projects__readme_html_haml___2036282917939462960_70154565285700' actionview (4.1.11) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.11) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.11) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.11) lib/action_view/template.rb:339:in `instrument' actionview (4.1.11) lib/action_view/template.rb:143:in `render' rack-mini-profiler (0.9.0) lib/mini_profiler/profiling_methods.rb:108:in `block in profile_method' actionview (4.1.11) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' actionview (4.1.11) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' actionview (4.1.11) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' activesupport (4.1.11) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.11) lib/active_support/notifications.rb:159:in `instrument' actionview (4.1.11) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' actionview (4.1.11) lib/action_view/renderer/partial_renderer.rb:278:in `render' actionview (4.1.11) lib/action_view/renderer/renderer.rb:47:in `render_partial' actionview (4.1.11) lib/action_view/helpers/rendering_helper.rb:35:in `render' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml' haml (4.0.5) lib/haml/helpers.rb:89:in `non_haml' haml (4.0.5) lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml' app/views/projects/show.html.haml:47:in `_app_views_projects_show_html_haml__1458303859692972698_70154948164180' actionview (4.1.11) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.11) lib/active_support/notifications.rb:159:in `block in instrument' ``` Closes https://github.com/gitlabhq/gitlabhq/issues/9484, but there may be some other issue there. See merge request !1041
| * Fix Error 500 when browsing projects with no HEADStan Hu2015-07-241-1/+2
| | | | | | | | | | | | | | | | | | | | Steps to reproduce: 1. Create a project with a README 2. In the actual remote, type: `git symbolic-ref HEAD refs/heads/nowhere` 3. Check that HEAD is gone via `git ls-remote .` 4. Go to the projects page and see the Error 500 Closes https://github.com/gitlabhq/gitlabhq/issues/9484
* | Allow custom label to be set for authentication providers.auth-icons-labelsDouwe Maan2015-07-233-47/+50
|/
* Fix label read access for unauthenticated usersDaniel Gerhardt2015-07-191-1/+5
| | | | | | | | | | | | | | The label page was added to navigation for unauthorized users because the previously used milestone read permission was still checked. This has been fixed and read access to labels is now granted (again) for public projects. This regression has been introduced in 07efb17e10fe26a01b60d8441868f9fbda0768f2 (7.12). See also 9bcd36396b9b71467f66dd4ed79ab709bb5d027a. Refs !836, !842.
* Store commit count in project tableadvanced-cacheDmitriy Zaporozhets2015-07-171-0/+14
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'project-default-view' into 'master'Dmitriy Zaporozhets2015-07-141-0/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow user to specify content he wants to see on project page Improvement to !938. Since a lot of people complain on fact they don't like to see README. Especially since we already have a switcher for dashboard - it kind of acceptable to select behaviour. User can specify which content he/she wants to see: ![Screenshot_2015-07-13_18.24.31](https://gitlab.com/gitlab-org/gitlab-ce/uploads/d237474e8f52df4a62ba7e951fa28bd8/Screenshot_2015-07-13_18.24.31.png) ![Screenshot_2015-07-13_18.24.36](https://gitlab.com/gitlab-org/gitlab-ce/uploads/473b0e2a94b3de16d048b8332b539816/Screenshot_2015-07-13_18.24.36.png) cc @JobV @jacobvosmaer @marin @sytses See merge request !970
| * Allow user to specify content he wants to see on project pageproject-default-viewDmitriy Zaporozhets2015-07-131-0/+12
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Use password field default password masking.use_password_field_defaults_for_servicesMarin Jankovski2015-07-131-10/+0
|/
* Merge branch 'vis_btn_color_change' into 'master'Dmitriy Zaporozhets2015-07-131-1/+1
|\ | | | | | | | | | | | | | | | | | | Changed the color of admin/application_settings buttons Now they look like this: ![image](https://gitlab.com/gitlab-org/gitlab-ce/uploads/a43c0c7fada5768bddda6e3449b37a5e/image.png) gray when selected, white when not. See merge request !887