Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7ff50be865
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (26 sloc) 1.083 kb
<%
f = sa.to_function
lib = f.library
belongs_to_user = current_user_session && (current_user == sa.user)
%>
<div>
<div class="controls">
<span class="vote_count <%= (sa.vote_score < 0 ? "below_vote_threshold" : "") %>"><%= sa.vote_score %></span>
<% if current_user_session and not sa.has_voted?(current_user) and not sa.owner?(current_user) %>
<a class="vote_down" id="vote_down_<%=sa.id%>" href="#"><%= image_tag "minus_alt_12x12.png"%></a>
<a class="vote_up" id="vote_up_<%=sa.id%>" href="#"><%= image_tag "check_alt_12x12.png"%></a>
<% end %>
<% if belongs_to_user %>
<a class="delete" id="delete_<%=sa.id%>" href="#"><%= image_tag "trash_stroke_12x12.png", :alt => "delete" %></a>
<% end %>
</div>
<%= link_to "<span class='ns'>#{f.namespace.name}/</span><span class='name'>#{f.name}</span>",
:controller => 'main',
:action => 'function',
:lib => lib.url_friendly_name,
:version => nil,
:ns => f.namespace.name,
:function => f.url_friendly_name %>
<p class="shortdoc"><%= f.shortdoc %></p>
<div class="clear"></div>
</div>
Jump to Line
Something went wrong with that request. Please try again.