From de83c91c2fd8b8f5c7230e2515d6e206331fd37f Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Wed, 28 Dec 2011 01:29:53 +0200 Subject: [PATCH] small redesign of controls of notes --- app/assets/stylesheets/notes.css.scss | 8 ++++++++ app/views/notes/_form.html.haml | 14 ++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/notes.css.scss b/app/assets/stylesheets/notes.css.scss index c3ee843..4aba53c 100644 --- a/app/assets/stylesheets/notes.css.scss +++ b/app/assets/stylesheets/notes.css.scss @@ -42,3 +42,11 @@ body.project-page #notes-list .note span.note-author strong{font-weight: bold; f .note .note-title { margin-left:55px; } + +p.notify_controls input{ + margin: 5px; +} + +p.notify_controls span{ + font-weight: 700; +} diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml index 23c9553..65af82b 100644 --- a/app/views/notes/_form.html.haml +++ b/app/views/notes/_form.html.haml @@ -22,13 +22,15 @@ %br %br = f.file_field :attachment + + %p.notify_controls + %span Notify: + = check_box_tag :notify, 1, @note.noteable_type != "Commit" + = label_tag :notify, "Project team" - = check_box_tag :notify, 1, @note.noteable_type != "Commit" - = label_tag :notify, "Notify project team about your note" - - -if @note.noteable_type == "Commit" - = check_box_tag :notify_author, 1 , @note.noteable_type == "Commit" - = label_tag :notify_author, "Notify commit author about your note" + -if @note.noteable_type == "Commit" + = check_box_tag :notify_author, 1 , @note.noteable_type == "Commit" + = label_tag :notify_author, "Commit author" .clear %br -- libgit2 0.21.2