summaryrefslogtreecommitdiff
path: root/app/helpers
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * Changed to using the btn classvis_btn_color_changeDarby2015-07-101-1/+1
| |
* | Merge branch 'fork_visibility_level' into 'master'Dmitriy Zaporozhets2015-07-102-0/+16
|\ \ | | | | | | | | | | | | | | | | | | | | | Forks should not have more permissive visibility levels than the original https://dev.gitlab.org/gitlab/gitlabhq/issues/2286 See merge request !936
| * | Fork visibility level fixfork_visibility_levelValery Sizov2015-07-062-0/+16
| | |
* | | Merge branch 'comment-box-changes' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2015-07-101-1/+1
|\ \ \
| * | | Fixed the issuescomment-box-changesDarby2015-07-091-1/+1
| | | |
| * | | Comment box/Placeholder text redoDarby2015-07-011-1/+1
| | | |
* | | | Cache readme rendering resultDmitriy Zaporozhets2015-07-091-0/+4
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Merge branch 'project-home-page'Dmitriy Zaporozhets2015-07-091-0/+6
|\ \ \ \
| * | | | Show last push widget on several project pagesDmitriy Zaporozhets2015-07-081-0/+6
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | | Properly render plain readmeDmitriy Zaporozhets2015-07-091-0/+8
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | | Merge branch 'rs-dev-issue-2372' into 'master'Dmitriy Zaporozhets2015-07-081-0/+2
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Filter by issues/merge requests without a milestone Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2372 See merge request !886
| * | | | Rename NoMilestone to Milestone::NoneRobert Speicher2015-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | Also refactors IssuableFinder to avoid redundant title check.
| * | | | Allow user to filter by Issues/Merge Requests without a MilestoneRobert Speicher2015-07-061-0/+2
| | |/ / | |/| |
* | | | Recommend user to create README file for both empty and existing projectDmitriy Zaporozhets2015-07-081-0/+7
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Refactor star and fork buttonsDmitriy Zaporozhets2015-07-081-47/+0
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Move project activity to separate tab. Add more features to project home pageDmitriy Zaporozhets2015-07-072-1/+5
|/ / / | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | Merge branch 'group_settings_nav' into 'master'Douwe Maan2015-07-011-8/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix consistency issue in sidebars of Project and Group Settings. Fixes #2277 ![before_after_group_settings_nav](https://dev.gitlab.org/gitlab/gitlabhq/uploads/370c701d0eff8f1f8e44cf954c75f2bf/before_after_group_settings_nav.png) See merge request !1871
| * | | Fix consistency issue in sidebars of Project and Group Settings.Nicolas2015-06-241-8/+0
| | |/ | |/| | | | | | | Fixes #2277.
* | | Merge branch 'fix-relative-submodule-namespace-path' into 'master'Dmitriy Zaporozhets2015-06-291-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix Error 500 when relative submodule resolves to a namespace that has a different name from its path ### What does this MR do? This MR fixes a bug in resolving a namespace when the `name` differed from `path`. ### Why was this MR needed? The original code was using `name`, when the proper input to `namespace_project_path` was `path`. ### What are the relevant issue numbers? Closes #1849 See merge request !864
| * | | Fix Error 500 when relative submodule resolves to a namespace that has a ↵Stan Hu2015-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | different name from its path Closes #1849
* | | | Merge branch 'permission-improvements' into 'master'Dmitriy Zaporozhets2015-06-261-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update permissions for issue tracker management Don't allow guest or reporter to set assignee, milestone and label when create or update new issue and merge request. After this change `Guest` and `Reporter` rule is used to report issues but only `Developer` and higher roles can manage issues (schedule milestone, assign to user or close any issue) Also I removed some duplication code between issues and merge requests and put all issuable partials in one directory See merge request !890
| * | | | Refactor issue and merge request sidebarDmitriy Zaporozhets2015-06-251-0/+8
| | |_|/ | |/| | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Add SAML to list of social_providermatt-firtion/gitlab-ce-SAML_1888Matthew Firtion2015-06-251-1/+1
|/ / /
* | | Prefix random Markdown tips with "Tip:"rs-random-placeholder-tipRobert Speicher2015-06-241-1/+1
| | |
* | | Show a random Markdown tip in the textarea placeholderRobert Speicher2015-06-231-0/+23
| |/ |/|
* | Fixed invalid timestamps in RSS feed #1771Rowan Wookey2015-06-231-1/+1
|/
* Merge branch 'revert-mr-state-names'Dmitriy Zaporozhets2015-06-221-3/+2
|\ | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: features/steps/project/merge_requests.rb
| * Revert merge request states renamingDmitriy Zaporozhets2015-06-191-3/+2
| | | | | | | | | | | | | | | | Replaced: * "Accepted" with "Merged" * "Rejected" with "Closed" Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Merge branch 'rs-rspec3' into 'master'Dmitriy Zaporozhets2015-06-223-4/+15
|\ \ | | | | | | | | | | | | | | | | | | | | | RSpec3 Upgrades rspec to 3.3.0, we're now up-to-date! :tada: See merge request !831
| * | Update mock and stub syntax for specsRobert Speicher2015-06-223-4/+15
| | |
* | | Merge branch 'rs-remove-link-to-override'Dmitriy Zaporozhets2015-06-221-33/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: spec/helpers/application_helper_spec.rb
| * | | Remove overridden `link_to` helperrs-remove-link-to-overrideRobert Speicher2015-06-171-33/+0
| | |/ | |/| | | | | | | The purpose for this override is now handled by `ExternalLinkFilter`.
* | | Merge branch 'new-logo' into 'master'Dmitriy Zaporozhets2015-06-221-1/+1
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Replace old logo with new one Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> cc @JobV @sytses See merge request !848
| * | Replace old logo with new onenew-logoDmitriy Zaporozhets2015-06-191-1/+1
| |/ | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>