Commit 66d64ad4f480091d0a73ac831495071050fa7d0d
1 parent
2228f1b1
Exists in
master
and in
4 other branches
Fixed code in issue details, changed form description to details.
Showing
2 changed files
with
18 additions
and
3 deletions
Show diff stats
app/assets/stylesheets/common.scss
@@ -945,6 +945,18 @@ p.time { | @@ -945,6 +945,18 @@ p.time { | ||
945 | .alert-message { | 945 | .alert-message { |
946 | width:34px; | 946 | width:34px; |
947 | margin: 0 0 0 auto; | 947 | margin: 0 0 0 auto; |
948 | + | ||
949 | + .error { | ||
950 | + width: 40px; | ||
951 | + } | ||
952 | + } | ||
953 | + } | ||
954 | + | ||
955 | + pre { | ||
956 | + background: white !important; | ||
957 | + | ||
958 | + code { | ||
959 | + background: none !important; | ||
948 | } | 960 | } |
949 | } | 961 | } |
950 | } | 962 | } |
app/views/issues/_form.html.haml
@@ -13,9 +13,9 @@ | @@ -13,9 +13,9 @@ | ||
13 | .input= f.text_field :title, :maxlength => 255 | 13 | .input= f.text_field :title, :maxlength => 255 |
14 | 14 | ||
15 | .clearfix | 15 | .clearfix |
16 | - = f.label :description, "Issue Description" | 16 | + = f.label :description, "Issue Details" |
17 | .input= f.text_area :description, :maxlength => 2000, :class => "xxlarge" | 17 | .input= f.text_area :description, :maxlength => 2000, :class => "xxlarge" |
18 | - %p.hint Markdown is enabled. | 18 | + %p.hint Markdown is enabled. |
19 | 19 | ||
20 | .clearfix | 20 | .clearfix |
21 | = f.label :assignee_id | 21 | = f.label :assignee_id |
@@ -31,7 +31,10 @@ | @@ -31,7 +31,10 @@ | ||
31 | .input= f.check_box :closed | 31 | .input= f.check_box :closed |
32 | 32 | ||
33 | .actions | 33 | .actions |
34 | - = f.submit 'Submit new issue', :class => "primary btn" | 34 | + - if @issue.new_record? |
35 | + = f.submit 'Submit new issue', :class => "primary btn" | ||
36 | + -else | ||
37 | + = f.submit 'Save changes', :class => "primary btn" | ||
35 | 38 | ||
36 | - if request.xhr? | 39 | - if request.xhr? |
37 | = link_to "Cancel", "#back", :onclick => "backToIssues();", :class => "btn" | 40 | = link_to "Cancel", "#back", :onclick => "backToIssues();", :class => "btn" |