Skip to content

Commit

Permalink
added support for no social networks
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Aug 5, 2012
1 parent f6bd343 commit d1d452e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions app/views/pages/index.html.erb
Expand Up @@ -7,10 +7,18 @@
<p><a class="btn btn-primary btn-large" href="/about">Learn more &raquo;</a>&nbsp;<a class="btn btn-primary btn-large" href="/users/new">Register &raquo;</a></p>
</div>
<p class="pull-right">
<a href="<%=@council.facebookurl%>"><%=image_tag "/images/facebook.png", :width => "100"%></a>
<a href="<%=@council.linkedinurl%>"><%=image_tag "/images/linkedin.png", :width => "100"%></a>
<a href="<%=@council.twitterurl%>"><%=image_tag "/images/twitter1.png", :width => "100"%></a>
<a href="<%=@council.mobileurl%>"><%=image_tag "/images/mobile.png", :width => "100"%></a>
<% if @council.facebookurl %>
<a href="<%=@council.facebookurl%>"><%=image_tag "/images/facebook.png", :width => "100"%></a>
<% end %>
<% if @council.linkedinurl %>
<a href="<%=@council.linkedinurl%>"><%=image_tag "/images/linkedin.png", :width => "100"%></a>
<% end %>
<% if @council.twitterurl %>
<a href="<%=@council.twitterurl%>"><%=image_tag "/images/twitter1.png", :width => "100"%></a>
<% end %>
<% if @council.mobileurl %>
<a href="<%=@council.mobileurl%>"><%=image_tag "/images/mobile.png", :width => "100"%></a>
<% end %>
<!-- <li class="last"><a href="/posts/rss"><%=image_tag "/images/rss.gif"%></a></li> -->
</p>
</div>
Expand Down

0 comments on commit d1d452e

Please sign in to comment.