summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-17 12:42:13 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-17 12:42:13 +0200
commit5ac57305477ed90bf416b3c795516e9b9135bf5b (patch)
treedd28631b52b481870afaf4b3b97c91901ecef89e /app
parentb90cbfd21ec9bd366ee931d246d51f8821b2a023 (diff)
downloadgitlab-ce-5ac57305477ed90bf416b3c795516e9b9135bf5b.tar.gz
Sort project services by title. Add textarea support to it
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/services/_form.html.haml2
-rw-r--r--app/views/projects/services/index.html.haml2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/services/_form.html.haml b/app/views/projects/services/_form.html.haml
index 202bf327217..e220d6a3185 100644
--- a/app/views/projects/services/_form.html.haml
+++ b/app/views/projects/services/_form.html.haml
@@ -33,6 +33,8 @@
.controls
- if type == 'text'
= f.text_field name, class: "input-xlarge", placeholder: placeholder
+ - elsif type == 'textarea'
+ = f.textarea name, rows: 5
- elsif type == 'checkbox'
= f.check_box name
diff --git a/app/views/projects/services/index.html.haml b/app/views/projects/services/index.html.haml
index 190aa69dab7..9543d97b7f7 100644
--- a/app/views/projects/services/index.html.haml
+++ b/app/views/projects/services/index.html.haml
@@ -3,7 +3,7 @@
%hr
%ul.bordered-list
- - @services.each do |service|
+ - @services.sort_by(&:title).each do |service|
%li
%h4
= link_to edit_project_service_path(@project, service.to_param) do