_proposal_card.html.erb
1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<% extend ProposalsDiscussionPlugin::ProposalHelper %>
<div class="proposal">
<div class="author">
<%= link_to_profile profile_image(proposal_card.author, :minor, :class => 'disable-zoom') + '<br/>' + proposal_card.author.short_name, proposal_card.author.identifier, :class => 'profile-link' %>
</div>
<div class="content">
<div class="title">
<%= link_to proposal_card.name, proposal_card.view_url %>
</div>
<% if proposal_card.published? %>
<div class="public actions">
<%= render :partial => 'content_viewer/social', :locals => {:proposal => proposal_card} %>
</div>
<% else %>
<div class="private actions">
<%= link_to url_for({:controller => 'proposals_discussion_plugin_myprofile', :action => 'publish_proposal', :proposal_id => proposal_card.id}), :class => 'button with-text icon-suggest' do %>
<strong><%= _("Publish") %></strong>
<% end %>
</div>
<% end %>
<div class="abstract">
<%= proposal_card.abstract.html_safe %>
</div>
<div class="score">
<%= proposal_score(proposal_card) %>
</div>
<div class="locations">
<%= proposal_locations(proposal_card) %>
</div>
<div class="tags" id="article-tags">
<%= proposal_tags(proposal_card) %>
</div>
<div class="comments-count">
<%= n_("%s comment", "%s comments", proposal_card.comments_count) % proposal_card.comments_count %>
</div>
</div>
</div>