From 66d64ad4f480091d0a73ac831495071050fa7d0d Mon Sep 17 00:00:00 2001 From: Steven Verbeek Date: Sat, 17 Mar 2012 13:02:48 -0300 Subject: [PATCH] Fixed code in issue details, changed form description to details. --- app/assets/stylesheets/common.scss | 12 ++++++++++++ app/views/issues/_form.html.haml | 9 ++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 76101e70..ac7a0262 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -945,6 +945,18 @@ p.time { .alert-message { width:34px; margin: 0 0 0 auto; + + .error { + width: 40px; + } + } + } + + pre { + background: white !important; + + code { + background: none !important; } } } diff --git a/app/views/issues/_form.html.haml b/app/views/issues/_form.html.haml index 3eee0256..24c8d9e3 100644 --- a/app/views/issues/_form.html.haml +++ b/app/views/issues/_form.html.haml @@ -13,9 +13,9 @@ .input= f.text_field :title, :maxlength => 255 .clearfix - = f.label :description, "Issue Description" + = f.label :description, "Issue Details" .input= f.text_area :description, :maxlength => 2000, :class => "xxlarge" - %p.hint Markdown is enabled. + %p.hint Markdown is enabled. .clearfix = f.label :assignee_id @@ -31,7 +31,10 @@ .input= f.check_box :closed .actions - = f.submit 'Submit new issue', :class => "primary btn" + - if @issue.new_record? + = f.submit 'Submit new issue', :class => "primary btn" + -else + = f.submit 'Save changes', :class => "primary btn" - if request.xhr? = link_to "Cancel", "#back", :onclick => "backToIssues();", :class => "btn"