Skip to content

Commit

Permalink
fixed the layout of nodes in topics/index_secitons.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
flaneur2020 committed Mar 21, 2012
1 parent bf952d5 commit 359ff94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
14 changes: 10 additions & 4 deletions app/assets/stylesheets/front.scss
Expand Up @@ -213,16 +213,22 @@
font-size: 14px;
padding: 8px 0;
border-top: 1px solid #DDD;
position: relative;
overflow: auto;
label {
font-size: 12px;
color: #999;
display: inline-block;
width: 120px;
margin-right: 8px;
float: left;
text-align: right; }

}
a { margin-right: 10px; }
span.nodes {
float: left;
width: 550px;
}
a { margin-right: 10px; }
}
}


Expand All @@ -246,4 +252,4 @@
text-shadow: 0 1px 0 #fff;
}
}
}
}
10 changes: 6 additions & 4 deletions app/cells/topics/index_sections.html.erb
Expand Up @@ -4,10 +4,12 @@
<% @sections.each do |section| %>
<li>
<label><%= section.name %></label>
<% section.nodes.each do |node| %>
<%= link_to(node.name, node_topics_path(node), :title => node.name )%>
<% end %>
<span class="nodes">
<% section.nodes.each do |node| %>
<%= link_to(node.name, node_topics_path(node), :title => node.name )%>
<% end %>
</span>
</li>
<% end %>
</ul>
</div>
</div>

0 comments on commit 359ff94

Please sign in to comment.