Commit 92137b7b authored by randx's avatar randx

Removed class 'small' for some buttons. Fixed issue creation

parent d246a68a
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
background: #CEB; background: #CEB;
.accept_merge_request { .accept_merge_request {
font-size:13px;
float:left; float:left;
} }
.remove_branch_holder { .remove_branch_holder {
......
...@@ -60,7 +60,13 @@ class IssuesController < ApplicationController ...@@ -60,7 +60,13 @@ class IssuesController < ApplicationController
@issue.save @issue.save
respond_to do |format| respond_to do |format|
format.html { redirect_to project_issue_path(@project, @issue) } format.html do
if @issue.valid?
redirect_to project_issue_path(@project, @issue)
else
render :new
end
end
format.js format.js
end end
end end
......
...@@ -73,8 +73,8 @@ ...@@ -73,8 +73,8 @@
.span6 .span6
.span6 .span6
.actions .actions
= f.submit 'Save', class: "btn primary" = f.submit 'Save', class: "btn save-btn"
- if @admin_user.new_record? - if @admin_user.new_record?
= link_to 'Cancel', admin_users_path, class: "btn" = link_to 'Cancel', admin_users_path, class: "btn cancel-btn"
- else - else
= link_to 'Cancel', admin_user_path(@admin_user), class: "btn" = link_to 'Cancel', admin_user_path(@admin_user), class: "btn cancel-btn"
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.right .right
.span5 .span5
- if can? current_user, :write_issue, @project - if can? current_user, :write_issue, @project
= link_to new_project_issue_path(@project), class: "right btn small", title: "New Issue", remote: true do = link_to new_project_issue_path(@project), class: "right btn", title: "New Issue", remote: true do
%i.icon-plus %i.icon-plus
New Issue New Issue
= form_tag search_project_issues_path(@project), method: :get, remote: true, id: "issue_search_form", class: :right do = form_tag search_project_issues_path(@project), method: :get, remote: true, id: "issue_search_form", class: :right do
......
%h3.page_title %h3.page_title
SSH Keys SSH Keys
= link_to "Add new", new_key_path, class: "btn small right" = link_to "Add new", new_key_path, class: "btn right"
%hr %hr
%p.slead %p.slead
......
%h3.page_title %h3.page_title
Merge Requests Merge Requests
- if can? current_user, :write_issue, @project - if can? current_user, :write_issue, @project
= link_to new_project_merge_request_path(@project), class: "right btn small", title: "New Merge Request" do = link_to new_project_merge_request_path(@project), class: "right btn", title: "New Merge Request" do
New Merge Request New Merge Request
%br %br
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
%tr{ class: "tree-item #{tree_hex_class(content)}", url: tree_file_project_ref_path(@project, @ref, file) } %tr{ class: "tree-item #{tree_hex_class(content)}", url: tree_file_project_ref_path(@project, @ref, file) }
%td.tree-item-file-name %td.tree-item-file-name
= tree_icon(content) = tree_icon(content)
= link_to truncate(content.name, length: 40), tree_file_project_ref_path(@project, @ref || @commit.id, file), remote: :true %strong= link_to truncate(content.name, length: 40), tree_file_project_ref_path(@project, @ref || @commit.id, file), remote: :true
%td.tree_time_ago.cgray %td.tree_time_ago.cgray
- if index == 1 - if index == 1
%span.log_loading %span.log_loading
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment