Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-07-17 19:43:06 +0300
committerPhil Hughes <me@iamphill.com>2016-07-20 12:48:02 +0300
commiteb49e28ca0145fa7df6ef1077ae97e90ce39fc6b (patch)
tree5a81f88a69d7806156d34499c77ef0088ba69c36 /app/helpers/milestones_helper.rb
parent02ce5fba8d7aa94d5fb53bd717e77c93c6bd61b7 (diff)
Fixed milestone dropdown tests
Diffstat (limited to 'app/helpers/milestones_helper.rb')
-rw-r--r--app/helpers/milestones_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/milestones_helper.rb b/app/helpers/milestones_helper.rb
index 6ea83e5dc03..05caf91240f 100644
--- a/app/helpers/milestones_helper.rb
+++ b/app/helpers/milestones_helper.rb
@@ -55,6 +55,12 @@ module MilestonesHelper
end
end
+ def milestone_dropdown_selected_text
+ project = @target_project || @project || @projects
+
+ Milestone.of_projects(project).where(title: params[:milestone_title]).first().try(:name)
+ end
+
def milestone_remaining_days(milestone)
if milestone.expired?
content_tag(:strong, 'Past due')