summaryrefslogtreecommitdiff
path: root/app/views
Commit message (Collapse)AuthorAgeFilesLines
* Cache autocomplete resultscache-autocomplete-resultsPhil Hughes2016-07-011-0/+1
|
* Merge branch 'build-reopen-json' into 'master' Gabriel Mazetto2016-06-301-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build path sends JSON file path ## What does this MR do? Fixes an issue with browser caching JSON response on build page. Steps to see: - Open build (https://gitlab.com/gitlab-org/gitlab-ce/builds/2030226) - Close tab - Re-open tab You should now see some JSON :disappointed: This MR appends `.json` to the end of the build URL so that the browser can't cache it as the same URL. See merge request !4935
| * Build path sends JSON file pathbuild-reopen-jsonPhil Hughes2016-06-281-1/+1
| |
* | Make GH one-off auth the default again for importing GH projectsRémy Coutable2016-06-301-15/+21
| | | | | | | | | | | | Advertise the PAT as an alternative unless GH import is not configured. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Import from Github using Personal Access Tokens.Eric K Idema2016-06-303-22/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | This stands as an alternative to using OAuth to access a user's Github repositories. This is setup in such a way that it can be used without OAuth configuration. From a UI perspective, the how to import modal has been replaced by a full page, which includes a form for posting a personal access token back to the Import::GithubController. If the user has logged in via GitHub, skip the Personal Access Token and go directly to Github for an access token via OAuth.
* | Merge branch 'code_style_fixes' into 'master' Robert Speicher2016-06-3041-45/+44
|\ \ | | | | | | | | | | | | | | | | | | Remove unnecessary parens and other code style fixes This MR is based on reviewers` comments to https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/440 See merge request !5015
| * | Remove unnecessary parenscode_style_fixesValery Sizov2016-06-3041-45/+44
| | |
* | | Merge branch 'issue-18886' into 'master' Dmitriy Zaporozhets2016-06-301-2/+5
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Loop all disks when displaying system info. Closes #18886 See merge request !4983
| * | Loop all disks when displaying system infoissue-18886Josh Frye2016-06-291-2/+5
| | |
* | | Merge branch 'shards' into 'master' Yorick Peterse2016-06-302-1/+10
|\ \ \ | | | | | | | | | | | | | | | | Implement multiple repository mount points See merge request !4578
| * | | Add Application Setting to configure default Repository Path for new projectsshards-configAlejandro Rodríguez2016-06-291-0/+9
| | | |
| * | | Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-291-1/+1
| | | |
* | | | Add sub nav to file viewAnnabel Dunstone2016-06-301-7/+10
|/ / /
* | | Merge branch '19157-use-shortcuts-is-not-working-on-gitlab-com-help' into ↵Fatih Acet2016-06-301-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Fixed 'use shortcuts' button on docs ## What does this MR do? Exposes 'onToggleHelp() to window object through `showHelp()` so a help panel can be toggled globally using `showHelp()`. ## Are there points in the code the reviewer needs to double check? Is this the best implementation? I actually think this is tidier than doing something like `onclick="new Shortcuts().onToggleHelp"` or `$.trigger 'keydown', char: '?'` but let me know. ## Why was this MR needed? Docs UX ## What are the relevant issue numbers? Closes #19157. ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [ ] Added for this feature/bug - [ ] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) Closes #19157 See merge request !4979
| * | | Exposed 'onToggleHelp() to window object so showHelp() can be a global function'Luke "Jared" Bennett2016-06-291-1/+1
| | | | | | | | | | | | | | | | Removed from window and used static method
* | | | Merge branch 'cache-max-user-access-name' into 'master' Robert Speicher2016-06-291-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Memoize the maximum access level for the author of notes Cache the maximum access level for each user in a map in the controller In #19273, we saw that retrieving ProjectTeam#human_max_access for each note takes the bulk of the time when rendering certain issues or merge requests. We observe that most of the comments in an issue are typically done by the same users. This MR memoizes the max access level by user ID. See merge request !4982
| * | | | Memoize the maximum access level for the author of notesStan Hu2016-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In #19273, we saw that retrieving ProjectTeam#human_max_access for each note takes the bulk of the time when rendering certain issues or merge requests. We observe that most of the comments in an issue are typically done by the same users. This MR memoizes the max access level by user ID.
* | | | | Merge branch 'label-filter-path-fix' into 'master' Jacob Schatz2016-06-291-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed URL on label button when filtering ## What does this MR do? Gives the filtered labels the correct URL. Previously they tried to link to `labels#show` whereas now it links to the correct filter path. ## What are the relevant issue numbers? Closes #19005 See merge request !4897
| * | | | Fixed URL on label button when filteringlabel-filter-path-fixPhil Hughes2016-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | Closes #19005
* | | | | Merge branch 'issue_3359_3' into 'master' Douwe Maan2016-06-291-2/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Insert notification settings dropdown into groups ## Display notification settings dropdown for groups part of #3359 ![groups](/uploads/d61648236b81b0cca55fa2d73758f0df/groups.png) ![Screenshot_from_2016-06-29_10-58-37](/uploads/7be05ea6002932c094a81b25a308fd62/Screenshot_from_2016-06-29_10-58-37.png) ![small](/uploads/6f2b556d734c870e358f6f56618a0bab/small.png) See merge request !4857
| * \ \ \ \ Merge branch 'master' into issue_3359_3issue_3359_3Felipe Artur2016-06-2932-273/+262
| |\ \ \ \ \ | | | |/ / / | | |/| | |
| * | | | | merge master into issue_3359_3Felipe Artur2016-06-291-3/+6
| |\ \ \ \ \
| | * | | | | Insert notification settings dropdown into groupsFelipe Artur2016-06-222-1/+4
| | | | | | |
| * | | | | | merge master into issue_3359_3Felipe Artur2016-06-22183-1639/+2178
| |\ \ \ \ \ \
| * | | | | | | Insert notification settings dropdown into groupsFelipe Artur2016-06-222-1/+3
| | |/ / / / / | |/| | | | |
* | | | | | | Changes calendar activities to use target referencecal-activities-target-referencePhil Hughes2016-06-291-1/+1
| |_|/ / / / |/| | | | |
* | | | | | Merge branch 'md-toolbar-multiline-code' into 'master' Jacob Schatz2016-06-291-2/+2
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Markdown toolbar inserts code blocks ## What does this MR do? Adds the ability to insert code blocks with the markdown toolbar buttons. This is done by selecting the block & then clicking the code button. ## What are the relevant issue numbers? Closes #19173 See merge request !4950
| * | | | | Markdown toolbar inserts code blocksmd-toolbar-multiline-codePhil Hughes2016-06-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Closes #19173
* | | | | | Change load average to cpu/cores on system info.Josh Frye2016-06-281-2/+2
| | | | | |
* | | | | | Use number_to_human_size for system info and remove dependency on Filesize gem.Josh Frye2016-06-282-3/+3
| | | | | |
* | | | | | Round figures for system infoJosh Frye2016-06-281-2/+2
| | | | | |
* | | | | | Ensure Monitoring tab is highlightedJosh Frye2016-06-281-1/+1
| | | | | |
* | | | | | Fix stylingJosh Frye2016-06-282-5/+5
| | | | | |
* | | | | | Show basic system info on admin panel. Closes #18886Josh Frye2016-06-282-0/+26
| | | | | |
* | | | | | Fix group visibility UI consistency in settingsGrzegorz Bizon2016-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Closes #18949
* | | | | | Merge branch ↵Jacob Schatz2016-06-281-99/+110
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'lbennett/gitlab-ce-2542-implement-updated-ui-for-new-project-page' into 'master' Implement UI for new project page ## What does this MR do? Updates the project creation page to conform with the latest UI updates. ## Are there points in the code the reviewer needs to double check? Ney. ## Why was this MR needed? Updated UI. ## What are the relevant issue numbers? Closes #2542. ## Screenshots (if relevant) **Desktop:** ![Screen_Shot_2016-06-18_at_04.00.48](/uploads/0313eee96a2aef9ed5e048989548b133/Screen_Shot_2016-06-18_at_04.00.48.png) **Mobile:** ![Screen_Shot_2016-06-18_at_04.01.00](/uploads/505b110c3fcbf523aac08797db9f6781/Screen_Shot_2016-06-18_at_04.01.00.png) See merge request !4766
| * | | | | | Wiped old page and started on new UIlbennett/gitlab-ce-2542-implement-updated-ui-for-new-project-pageLuke "Jared" Bennett2016-06-281-99/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Completed new project page Updated CHANGELOG Corrected 'Create project' button Made responsive Added gitlab export button Changed Spinach test to match updated UI reverted test changes and fixed UI Corrected 'Repo by URL' text Fixed static namespace style Added errors partial Added padding to bottom of page-with-sidebar
* | | | | | | Switched mobile button icons to ellipsis and angleAnnabel Dunstone2016-06-286-11/+11
| |_|_|_|_|/ |/| | | | |
* | | | | | Merge branch 'display-deleted-ref-in-events' into 'master' Rémy Coutable2016-06-281-8/+17
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Display last commit of deleted branch in push events ## What does this MR do? Display the last commit of a deleted branch in the push events of a project. ## Are there points in the code the reviewer needs to double check? Is the change in `app/models/event.rb` the correct way to display a two-line event for deleted branches? ## Why was this MR needed? It is easier to restore an accidentally deleted branch if the commit hash is displayed in the push events. ## What are the relevant issue numbers? Fixes #18659 ## Screenshots ### Before garbage collection ![before-gc](/uploads/5674cd53e1564d48b7f2f8406ea0fbed/before-gc.png) ### After garbage collection ![after-gc](/uploads/80950c1932feeb3b69d0fc11b8f7acf4/after-gc.png) See merge request !4699
| * | | | | | Display last commit of deleted branch in push events (!4699)winniehell2016-06-281-8/+17
| | |_|_|_|/ | |/| | | |
* | | | | | Merge branch 'feature/custom-highlighting' into 'master' Rémy Coutable2016-06-282-2/+4
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add custom highlighting via .gitattributes ## What does this MR do? Allows user control of language selection via a `gitlab-language` entry in `.gitattributes` ## Are there points in the code the reviewer needs to double check? (paired with @stanhu) ## Why was this MR needed? Guessing languages by filename is fraught and often wrong. In one project, `foo.pl` may be perl, and in another it may be prolog. Users might have a Thingfile that needs ruby highlighting, or depend on things that can't work in general, like `*.C` (capitalized) mapping to C++ instead of C. This allows the user to override language choice so they never have to look at a mis-highlighted file. ## What are the relevant issue numbers? https://github.com/jneen/rouge/issues/494 https://gitlab.com/gitlab-org/gitlab-ce/issues/13818 (*.tpl can't in general map to Smarty) https://gitlab.com/gitlab-org/gitlab-ce/issues/13615 (in cases we don't have a language and mis-identify it, users could map to 'text' to turn off highlighting) ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] API support added (N/A) - [x] Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !4606
| * | | | | add custom highlighting via .gitattributeshttp://jneen.net/2016-06-272-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | paired with @stanhu
* | | | | | Merge remote-tracking branch 'dev/master'Robert Speicher2016-06-271-2/+3
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Merge branch '19102-fix' into 'master' Robert Speicher2016-06-271-2/+3
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix an information disclosure when requesting access to a group containing private projects Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/19102. The commit speaks for itself: Fix an information disclosure when requesting access to a group containing private projects The issue was with the `User#groups` and `User#projects` associations which goes through the `User#group_members` and `User#project_members`. Initially I chose to use a secure approach by storing the requester's user ID in `Member#created_by_id` instead of `Member#user_id` because I was aware that there was a security risk since I didn't know the codebase well enough. Then during the review, we decided to change that and directly store the requester's user ID into `Member#user_id` (for the sake of simplifying the code I believe), meaning that every `group_members` / `project_members` association would include the requesters by default... My bad for not checking that all the `group_members` / `project_members` associations and the ones that go through them (e.g. `Group#users` and `Project#users`) were made safe with the `where(requested_at: nil)` / `where(members: { requested_at: nil })` scopes. Now they are all secure. See merge request !1973
| | * | | | | Fix an information disclosure when requesting access to a group containing ↵Rémy Coutable2016-06-241-2/+3
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | private projects The issue was with the `User#groups` and `User#projects` associations which goes through the `User#group_members` and `User#project_members`. Initially I chose to use a secure approach by storing the requester's user ID in `Member#created_by_id` instead of `Member#user_id` because I was aware that there was a security risk since I didn't know the codebase well enough. Then during the review, we decided to change that and directly store the requester's user ID into `Member#user_id` (for the sake of simplifying the code I believe), meaning that every `group_members` / `project_members` association would include the requesters by default... My bad for not checking that all the `group_members` / `project_members` associations and the ones that go through them (e.g. `Group#users` and `Project#users`) were made safe with the `where(requested_at: nil)` / `where(members: { requested_at: nil })` scopes. Now they are all secure. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | | | Merge branch 'emoji-menu-stick-search' into 'master' Jacob Schatz2016-06-271-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made the search bar on emoji menu sticky ## What does this MR do? When scrolling down the emoji menu, the search bar disappears. For better UX, the search bar no stays at the top when scrolling. ## Screenshots (if relevant) ![emoji-sticky](/uploads/a5b4773547d3d67342ddcfc07c8f1568/emoji-sticky.gif) See merge request !4743
| * | | | | | Made the search bar on emoji menu stickyPhil Hughes2016-06-201-1/+1
| | | | | | |
* | | | | | | Add conditional for new pag linkAnnabel Dunstone2016-06-271-0/+4
| | | | | | |
* | | | | | | Remove duplicate new page btn from edit wikiAnnabel Dunstone2016-06-271-3/+0
| |/ / / / / |/| | | | |
* | | | | | Revert Subresource Integrity pending a fix for Firefox's incorrect hashing ↵revert-sriConnor Shea2016-06-271-3/+3
| |_|/ / / |/| | | | | | | | | | | | | | implementation.