summaryrefslogtreecommitdiff
path: root/app/helpers/issues_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Show `New Issue` link for projectsBob Van Landuyt2018-04-111-0/+11
| | | | | | | When a user is not logged in, we want to show the `New Issue` link so he gets directed to the login flow first. When a project is archived, we never want to show the link.
* Prevent awarding emoji when a project is archivedBob Van Landuyt2018-04-111-2/+2
| | | | This prevents performing the requests, and disables all emoji reaction buttons
* Port `read_cross_project` ability from EEBob Van Landuyt2018-02-221-21/+0
|
* Resolve "Closed issue label in todo's styling is difficult to read"Simon Knox2018-01-171-1/+1
|
* Update issuable status icons33926-update-issuable-iconsEric Eastwood2017-12-131-1/+1
| | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/33926 Changed file icons already addressed in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15367
* Removes default scope from sortable23079-remove-default-scope-in-sortableTiago Botelho2017-09-071-1/+1
|
* Merge branch 'remove-unused-code-issueshelper' into 'master'Rémy Coutable2017-09-041-27/+0
|\ | | | | | | | | Remove unused methods from `IssuesHelper` and `IssuablesHelper` See merge request !13793
| * Remove unused `IssuesHelper#merge_requests_sentence`Mehdi Lahmam2017-08-241-8/+0
| | | | | | | | Its last usage has been removed at eb3e7bdfd8.
| * Remove unused `IssuesHelper#due_date_options`Mehdi Lahmam2017-08-241-12/+0
| | | | | | | | Its last usage has been removed at 05523b5bd1.
| * Remove unused `IssuesHelper#bulk_update_milestone_options`Mehdi Lahmam2017-08-241-7/+0
| | | | | | | | Its last usage has been removed at 2e3c082f2a.
* | Merge branch 'master' into issue-discussions-refactorDouwe Maan2017-07-311-3/+23
|\ \ | |/ | | | | | | | | | | # Conflicts: # app/controllers/concerns/notes_actions.rb # spec/features/task_lists_spec.rb # spec/support/features/issuable_slash_commands_shared_examples.rb
| * Support both internal and external issue trackersJarka Kadlecova2017-07-241-3/+23
| |
* | Add full JSON endpoints for issue notes and discussionsDouwe Maan2017-07-211-1/+1
|/
* Create and use project path helpers that only need a project, no namespaceDouwe Maan2017-07-051-1/+1
|
* frontend prevent authored votesbarthc2017-04-141-0/+8
|
* Indicate that `single_discussion` is optionalBob Van Landuyt2017-03-131-1/+1
|
* Build link to discussions to resolve in a helperBob Van Landuyt2017-03-131-0/+14
|
* Use native unicode emojisEric Eastwood2017-03-061-28/+0
| | | | | | | | | | | | | | | | | | | | - gl_emoji for falling back to image/css-sprite when the browser doesn't support an emoji - Markdown rendering (Banzai filter) - Autocomplete - Award emoji menu - Perceived perf - Immediate response because we now build client-side - Update `digests.json` generation in gemojione rake task to be more useful and include `unicodeVersion` MR: !9437 See issues - #26371 - #27250 - #22474
* Merge branch '26168-emoji-reactions-missing-tooltip-when-not-logged-in' into ↵Fatih Acet2017-01-031-2/+4
|\ | | | | | | | | | | | | | | | | | | 'master' Disable award emoji button but display tooltip Closes #26168 See merge request !8382
| * Disable award emoji button but display tooltip26168-emoji-reactions-missing-tooltip-when-not-logged-inSam Rose2016-12-311-2/+4
| |
* | rewrite the item.respond_to?(:x?) && item.x? to item.try(:x?)dimitrieh2017-01-031-3/+3
|/
* Add a starting date to milestonesmilestone_start_dateValery Sizov2016-11-231-0/+2
|
* Optimize the `award_user_list` helper specRobert Speicher2016-10-071-3/+2
| | | | | | | | | | | | | | | According to https://gitlab.com/gitlab-org/gitlab-ce/issues/23034#note_16586657, each test for this helper generated 1,833 queries. Now we only generate stubbed records, and only as many as we need for each test. This also corrects a slight logic bug in the helper itself. When the number of awards was greater than the limit (9 by default), _and_ the current user was one of them, we actually included 10 names, including "You", plus the remaining count. Now we return the correct number regardless.
* Award tooltips refer to current user as "You"Jack Davison2016-08-171-2/+2
|
* Switch to using to_sentence to construct tooltipsJack Davison2016-08-171-2/+2
| | | | | | * Code in ruby now uses Array#to_sentence to construct award tooltips * Coffeescript uses a combination of regexes for the same result
* Truncates 9-10 users with current user in frontJack Davison2016-08-171-1/+5
| | | | | | * If the current user is not in the list output will have 1-9 users * If the current user is in the list output will be "me, " + 0-9 users
* Truncated user list in award emoji tooltipsJack Davison2016-08-171-2/+6
| | | | | | | | | | | | | | * Only the first 10 names are displayed * Further users are indicated by "and X more." * String "and X more" is appended to the array THEN join is called * An oxford comma seperates the last name from "and X more" * In coffeescript "me" is now always prepended * Tests included
* Remove `url_for_new_issue` helperrs-external-issue-tracker-redirectRobert Speicher2016-08-011-16/+0
| | | | | Now we link to the standard `IssuesController#new` action, and let it redirect if we're using an external tracker.
* Redirect to external issue tracker from `/issues`Robert Speicher2016-08-011-16/+0
| | | | | | | | | | | | | Prior, in order to display the correct link to "Issues" in the project navigation, we were performing a check against the project to see if it used an external issue tracker, and if so, we used that URL. This was inefficient. Now, we simply _always_ link to `namespace_project_issues_path`, and then in the controller we redirect to the external tracker if it's present. This also removes the need for the url_for_issue helper. Bonus! :tada:
* Add emoji.rb in lib/gitlab instead of using the gitlab_emoji gem.update-gemojiConnor Shea2016-06-291-1/+1
| | | | | | | | No reason to split it into a separate gem when the gem barely did anything. We can use gemojione directly, making updating gemojione that much easier. Also fix the Rake task and update gemojione to 2.6.1. This adds the EmojiOne Spring update. Changelog: https://github.com/jonathanwiesel/gemojione/blob/master/CHANGELOG.md
* Merge branch 'master' into awardablesZJ van de Weg2016-05-301-17/+0
|\
| * Remove `issue_to_atom` helperrs-remove-issue_to_atomRobert Speicher2016-05-231-17/+0
| |
* | Merge branch 'master' into awardablesZeger-Jan van de Weg2016-05-111-15/+45
|\ \ | |/
| * Ensure URL in all Service subclasses are validRémy Coutable2016-04-251-15/+33
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Address MR feedbackRémy Coutable2016-04-201-7/+6
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Fix functionality of due this week. Add due this month and overdue, remove ↵Mehmet Beydogan2016-04-201-5/+7
| | | | | | | | | | | | | | due tomorrow to issues. Fix typos on sorting dropdown related to due date Remove constant array and add Structs on Issue to keep due date data to fill options
| * Add due_date:time field to Issue modelMehmet Beydogan2016-04-201-0/+11
| | | | | | | | | | | | | | | | | | | | | | Add due_date text field to sidebar issue#show Add ability sorting issues by due date ASC and DESC Add ability to filtering issues by No Due Date, Any Due Date, Due to tomorrow, Due in this week options Add handling issue due_date field for MergeRequest Update CHANGELOG Fix ambigous match for issues#show sidebar Fix SCREAMING_SNAKE_CASE offenses for due date contants Add specs for due date sorting and filtering on issues
* | Add tests on Awardables and Award EmojiZeger-Jan van de Weg2016-05-101-7/+4
| |
* | Create table for award emojiZeger-Jan van de Weg2016-05-061-6/+7
|/
* Merge branch 'issue_1752' into 'master' Robert Speicher2016-04-111-0/+1
|\ | | | | | | | | | | | | Fix milestone removal problem when editing issues fixes #1752 See merge request !3571
| * Fix milestone removal problem when editing issuesFelipe Artur2016-04-061-0/+1
| |
* | Add "sprite" parameter to emoji_icon helperconnorshea2016-04-081-9/+24
|/ | | | | | | | | | | | | | | | | The emoji_icon helper used to display the award emoji in Issue and Merge Request views. By default the spritesheet is used, but passing `sprite: false` to the `emoji_icon` helper makes the emoji render as separate images. For award emoji displayed by default (e.g. thumbs-up, thumbs-down, and any that have been awarded to the issue/MR) the independent images are used. Only when the full emoji menu is opened does the full spritesheet load. On a normal issue this change decreases the page load by 670KB or 250KB depending on pixel density. Resolves #14334.
* Merge branch 'master' into feature/issue-moveGrzegorz Bizon2016-03-191-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (121 commits) Dedupe labels in labels selector in Dashboard pages Refactor colors and lists Add a safeguard in MergeRequest#compute_diverged_commits_count Fix an issue when the target branch of a MR had been deleted Add avatar to issue and MR pages header Cleanup somce css colors Re-group scss variables Refactor `Todo#target` Fixes issue with filter label missing on labels & milestones Rename `Todo#to_reference` to `Todo#target_reference` Fixed failing tests Updated controller with before_action Fixed other issues based on feedback Fixes issue on dashboard issues Full labels data in JSON Fixed issue with labels dropdown getting wrong labels Update CHANGELOG Use `Note#for_project_snippet?` to skip notes on project snippet Use `Commit#short_id` instead of `Commit.truncate_sha` Reuse `for_commit?` on conditional validations Update schema info comment on todo related files ... Conflicts: app/models/issue.rb db/schema.rb spec/models/issue_spec.rb
| * Add eye-slash icon to confidential issuesDouglas Barbosa Alexandre2016-03-171-0/+4
| |
* | Add minor improvements in code related to issue moveGrzegorz Bizon2016-03-171-3/+5
| |
* | Use helper to create list of projects issue can be moved toGrzegorz Bizon2016-03-171-0/+11
|/ | | | This also adds confirmation message if issue move has been requested.
* Fix milestone order in project and issue edit lists to due_dateolirogers/gitlab-ce-project-milestone-orderOliver Rogers2016-02-101-3/+3
|
* Add title attribute to Emojis in award pickerrs-add-title-to-emojiRobert Speicher2016-01-111-3/+6
|
* Use `xmlschema` where even more appropriate!Robert Speicher2016-01-071-1/+1
|
* Use `to_s(:iso8601)` where appropriateRobert Speicher2016-01-071-1/+1
|