Commit de83c91c2fd8b8f5c7230e2515d6e206331fd37f

Authored by Valery Sizov
1 parent 49b58057

small redesign of controls of notes

app/assets/stylesheets/notes.css.scss
... ... @@ -42,3 +42,11 @@ body.project-page #notes-list .note span.note-author strong{font-weight: bold; f
42 42  
43 43  
44 44 .note .note-title { margin-left:55px; }
  45 +
  46 +p.notify_controls input{
  47 + margin: 5px;
  48 +}
  49 +
  50 +p.notify_controls span{
  51 + font-weight: 700;
  52 +}
... ...
app/views/notes/_form.html.haml
... ... @@ -22,13 +22,15 @@
22 22 %br
23 23 %br
24 24 = f.file_field :attachment
  25 +
  26 + %p.notify_controls
  27 + %span Notify:
  28 + = check_box_tag :notify, 1, @note.noteable_type != "Commit"
  29 + = label_tag :notify, "Project team"
25 30  
26   - = check_box_tag :notify, 1, @note.noteable_type != "Commit"
27   - = label_tag :notify, "Notify project team about your note"
28   -
29   - -if @note.noteable_type == "Commit"
30   - = check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
31   - = label_tag :notify_author, "Notify commit author about your note"
  31 + -if @note.noteable_type == "Commit"
  32 + = check_box_tag :notify_author, 1 , @note.noteable_type == "Commit"
  33 + = label_tag :notify_author, "Commit author"
32 34  
33 35 .clear
34 36 %br
... ...