Taking care of css

This commit is contained in:
waltercruz 2008-10-25 17:43:52 -02:00
parent e82be2e522
commit 385f34d071
2 changed files with 8 additions and 5 deletions

View file

@ -1,5 +1,6 @@
<div class="project-state-group" id="list-<%= state %>-projects-container" <%= " style=\"display:none\"" if project_state_group.empty? %>> <div class="project-state-group" id="list-<%= state %>-projects-container" <%= " style=\"display:none\"" if project_state_group.empty? %>>
<h2><span id="<%= state %>-projects-count" class="badge"><%= project_state_group.length %></span><%= state.titlecase %> Projects</h2> <h2><span id="<%= state %>-projects-count" class="badge"><%= project_state_group.length %></span><%= state.titlecase %> Projects</h2>
<div class="menu_sort">
<div class="alpha_sort"> <div class="alpha_sort">
<%= link_to("Sort Alphabetically", alphabetize_projects_path(:state => state), <%= link_to("Sort Alphabetically", alphabetize_projects_path(:state => state),
:class => "alphabetize_link", :title => "Sort these projects alphabetically") %> :class => "alphabetize_link", :title => "Sort these projects alphabetically") %>
@ -10,10 +11,8 @@
page << remote_to_href(:complete => "alphaSort.stopWaiting()") page << remote_to_href(:complete => "alphaSort.stopWaiting()")
end end
end end
%></div> %></div><span class="sort_separator">&nbsp;|&nbsp;</span><div class="tasks_sort">
<%= link_to("Sort by number of tasks", actionize_projects_path(:state => state),
<div class="tasks_sort">
<%= link_to("Sort By number of tasks", actionize_projects_path(:state => state),
:class => "actionize_link", :title => "Sort these projects by number of tasks") %> :class => "actionize_link", :title => "Sort these projects by number of tasks") %>
<% apply_behavior '.actionize_link:click', :prevent_default => true do |page, element| <% apply_behavior '.actionize_link:click', :prevent_default => true do |page, element|
page.confirming 'Are you sure that you want to sort these projects by the number of tasks? This will replace the existing sort order.' do page.confirming 'Are you sure that you want to sort these projects by the number of tasks? This will replace the existing sort order.' do
@ -23,6 +22,7 @@
end end
end end
%></div> %></div>
</div>
<div id="list-<%= state %>-projects" class="project-list"> <div id="list-<%= state %>-projects" class="project-list">
<%= render :partial => 'project_listing', :collection => project_state_group %> <%= render :partial => 'project_listing', :collection => project_state_group %>

View file

@ -692,11 +692,14 @@ div#list-active-projects, div#list-hidden-projects, div#list-completed-projects,
margin:20px 0px 8px 13px margin:20px 0px 8px 13px
} }
div.alpha_sort { div.menu_sort {
margin-top:-20px; margin-top:-20px;
float:right; float:right;
} }
div.alpha_sort, div.tasks_sort,span.sort_separator {
float:left;
}
.container td { .container td {
border: none; border: none;