#757: some refactoring of styles

This commit is contained in:
Vokhmin Alexey V 2013-02-18 20:10:34 +04:00
parent 20691dabc5
commit 4604ceb318
3 changed files with 3 additions and 3 deletions

View File

@ -1788,5 +1788,5 @@ div.right.slim {
#extra-repos-and-containers {
width: 330px;
.actions { width: 50px; }
.actions { width: 15px; }
}

View File

@ -118,7 +118,7 @@ class Projects::BuildListsController < Projects::BaseController
platforms.each{ |p| p.repositories.each{ |r| results << {id: r.id, label: "#{p.name}/#{r.name}", value: "#{p.name}/#{r.name}"} } }
bl = BuildList.where(id: params[:term]).first
results << {id: "#{bl.id}-build-list", value: bl.id, label: 'Build list'} if bl
results << {id: "#{bl.id}-build-list", value: bl.id, label: "#{bl.id} (#{bl.project.name} - #{bl.arch.name})"} if bl
render json: results.to_json
end

View File

@ -1,6 +1,6 @@
%tr
- if subject.is_a?(BuildList)
%td= link_to subject.id, subject
%td= link_to "#{subject.id} (#{subject.project.name} - #{subject.arch.name})", subject
- else
%td= link_to "#{subject.platform.name}/#{subject.name}", [subject.platform, subject]
%td.actions