Commit graph

5 commits

Author SHA1 Message Date
Bryce Johnson
2d41c3f5a0 Restore inexplicably removed code from requestFileSuccess.
(also clean up a few global refs)
2016-10-05 12:48:18 +02:00
Bryce Johnson
14d681ebc8 Refactor TemplateSelector and fix for tests. 2016-10-05 11:25:05 +02:00
Joseph Frazier
e12f7a3b71 Combine requestFileSuccess arguments into opts
See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6149#note_14830172
2016-10-03 12:16:02 -04:00
Joseph Frazier
ad2b6cae0b Append issue template to existing description
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/21733

Add two newlines before the template if the existing description isn't
empty. This makes it easier to see where the template begins.

Don't append the template when "Reset template" is selected, of course.

Don't append template if it equals the existing description. This makes
it so that selecting a template twice doesn't duplicate it.
2016-10-03 12:16:02 -04:00
Felipe Artur
2872672945 Load issues and merge requests templates from repository 2016-08-16 15:50:17 -03:00