Skip to content

Commit

Permalink
More compact services view
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnocorp committed Jan 5, 2011
1 parent e3ff72c commit ac2e9eb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 26 deletions.
2 changes: 1 addition & 1 deletion app/helpers/accounts_helper.rb
Expand Up @@ -19,6 +19,6 @@ def link_to_service name, service
'http://iddy.jp/profile/' + service.key 'http://iddy.jp/profile/' + service.key
end end


link_to "#{image_tag("#{name}.ico")} <span>#{name.capitalize}</span>".html_safe, link link_to image_tag("#{name}.ico"), link
end end
end end
26 changes: 9 additions & 17 deletions app/stylesheets/master.sass
Expand Up @@ -99,23 +99,6 @@ dl


&.sites &.sites


&.services

a
text-decoration: none
span
text-decoration: underline

&:hover
span
text-decoration: none

img
vertical-align: top
margin-right: 2px

ul li
margin-bottom: 8px


dt dt
color: #A3A099 color: #A3A099
Expand All @@ -128,6 +111,15 @@ dl
li li
margin-bottom: 5px margin-bottom: 5px


ul.services
margin-bottom: 15px
border-top: 1px dotted #FBD0DC
padding-top: 10px

li
float: left
margin-right: 8px

.ruby-powered .ruby-powered
text-align: center text-align: center
padding: 80px 0 padding: 80px 0
Expand Down
11 changes: 3 additions & 8 deletions app/views/accounts/_account.html.erb
Expand Up @@ -39,14 +39,9 @@
<% end %> <% end %>
<% unless account.services.empty? %> <% unless account.services.empty? %>
<dl class="services"> <ul class="services">
<dt>Services:</dt> <%= render :partial => 'service', :collection => account.services %>
<dd> </ul>
<ul>
<%= render :partial => 'service', :collection => account.services %>
</ul>
</dd>
</dl>
<% end %> <% end %>


<!-- FIXME: unsure how to link to ISBN. :-( --> <!-- FIXME: unsure how to link to ISBN. :-( -->
Expand Down

0 comments on commit ac2e9eb

Please sign in to comment.