library.html.erb
1.29 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
38
39
40
41
42
43
44
45
<div id="dspace_library">
<%= content_tag 'div', dspace_library.body %>
<% if dspace_library.gather_option == "communities" %>
<h3><%= _("Communities") %></h3>
<% if true %>
<div class="library_actions">
<%= content_tag('a', :href => url_for({:controller => 'cms', :action => 'new', :type => "DspacePlugin::Communityy", :parent_id => dspace_library.id}), :class => 'button with-text icon-add') do %>
<%= _("New %s") % DspacePlugin::Communityy.short_description %>
<% end %>
</div>
<% end %>
<ul id="sortable" class="communities_list">
<%= render :partial => 'community_item', :collection => dspace_library.communities %>
</ul>
<% end %>
<% if dspace_library.gather_option == "collections" %>
<h3><%= _("Collections") %></h3>
<% if true %>
<div class="library_actions">
<%= content_tag('a', :href => url_for({:controller => 'cms', :action => 'new', :type => "DspacePlugin::Collection", :parent_id => dspace_library.id}), :class => 'button with-text icon-add') do %>
<%= _("New %s") % DspacePlugin::Collection.short_description %>
<% end %>
</div>
<% end %>
<ul id="collections_list" class="collections_list">
<%= render :partial => 'collection_item', :collection => dspace_library.collections %>
</ul>
<% end %>
</div>