forked from gitlabhq/gitlabhq
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dmitriy Zaporozhets
committed
Jan 27, 2012
1 parent
fbdb1da
commit 4d9c3f3
Showing
16 changed files
with
53 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ | |
.clear | ||
%br | ||
.actions | ||
= f.submit 'Save', :class => "grey-button" | ||
= f.submit 'Save', :class => "btn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
%div | ||
= form_for [@project, @note], :remote => "true", :multipart => true do |f| | ||
%h3 Leave a note | ||
= form_for [@project, @note], :remote => "true", :multipart => true do |f| | ||
-if @note.errors.any? | ||
.errors.error | ||
- @note.errors.full_messages.each do |msg| | ||
%div= msg | ||
-if @note.errors.any? | ||
.alert-message.block-message.error | ||
- @note.errors.full_messages.each do |msg| | ||
%div= msg | ||
|
||
= f.hidden_field :noteable_id | ||
= f.hidden_field :noteable_type | ||
= f.text_area :note, :size => 255 | ||
= f.hidden_field :noteable_id | ||
= f.hidden_field :noteable_type | ||
= f.text_area :note, :size => 255 | ||
|
||
.row | ||
.span6 | ||
%h5 Notify via email: | ||
.clearfix | ||
= label_tag :notify do | ||
= check_box_tag :notify, 1, @note.noteable_type != "Commit" | ||
%span Project team | ||
.row | ||
.span6 | ||
%h5 Notify via email: | ||
.clearfix | ||
= label_tag :notify do | ||
= check_box_tag :notify, 1, @note.noteable_type != "Commit" | ||
%span Project team | ||
|
||
-if @note.noteable_type == "Commit" | ||
= label_tag :notify_author do | ||
= check_box_tag :notify_author, 1 , @note.noteable_type == "Commit" | ||
%span Commit author | ||
.span6 | ||
%h5 Attachment: | ||
.clearfix | ||
= f.label :attachment, "Any file, < 10 MB" | ||
.input= f.file_field :attachment, :class => "input-file" | ||
-if @note.noteable_type == "Commit" | ||
= label_tag :notify_author do | ||
= check_box_tag :notify_author, 1 , @note.noteable_type == "Commit" | ||
%span Commit author | ||
.span6 | ||
%h5 Attachment: | ||
.clearfix | ||
= f.label :attachment, "Any file, < 10 MB" | ||
.input= f.file_field :attachment, :class => "input-file" | ||
|
||
|
||
= f.submit 'Add note', :class => "btn primary", :id => "submit_note" | ||
= f.submit 'Add note', :class => "btn primary", :id => "submit_note" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,5 @@ | |
Dark code preview | ||
.clear | ||
.buttons | ||
= f.submit 'Save', :class => "grey-button" | ||
= f.submit 'Save', :class => "btn" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters