diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-17 12:42:13 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-17 12:42:13 +0200 |
commit | 5ac57305477ed90bf416b3c795516e9b9135bf5b (patch) | |
tree | dd28631b52b481870afaf4b3b97c91901ecef89e /app/views/projects/services | |
parent | b90cbfd21ec9bd366ee931d246d51f8821b2a023 (diff) | |
download | gitlab-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/views/projects/services')
-rw-r--r-- | app/views/projects/services/_form.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/services/index.html.haml | 2 |
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 |