myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3505] branches/wf4ever/app: changed maintainer l


From: noreply
Subject: [myexperiment-hackers] [3505] branches/wf4ever/app: changed maintainer list of a pack to those that have edit access
Date: Thu, 11 Apr 2013 23:29:41 +0000 (UTC)

Revision
3505
Author
dgc
Date
2013-04-11 23:29:41 +0000 (Thu, 11 Apr 2013)

Log Message

changed maintainer list of a pack to those that have edit access

Modified Paths

Diff

Modified: branches/wf4ever/app/controllers/packs_controller.rb (3504 => 3505)


--- branches/wf4ever/app/controllers/packs_controller.rb	2013-04-11 23:28:58 UTC (rev 3504)
+++ branches/wf4ever/app/controllers/packs_controller.rb	2013-04-11 23:29:41 UTC (rev 3505)
@@ -86,6 +86,8 @@
       @all_annotations << ag[:body]
     end
 
+    @maintainers = Authorization.authorized_for_object(:edit, @pack)
+
     @sketch = @all_annotations.query([nil, RDF::type, RDF::URI.parse("http://purl.org/wf4ever/roterms#Sketch")]).map do |s, p, o| s.to_s end
 
     @hypothesis = @all_annotations.query([nil, RDF::type, RDF::URI.parse("http://purl.org/wf4ever/roterms#Hypothesis")]).map do |s, p, o| s.to_s end

Modified: branches/wf4ever/app/views/research_objects/_uploader.rhtml (3504 => 3505)


--- branches/wf4ever/app/views/research_objects/_uploader.rhtml	2013-04-11 23:28:58 UTC (rev 3504)
+++ branches/wf4ever/app/views/research_objects/_uploader.rhtml	2013-04-11 23:29:41 UTC (rev 3505)
@@ -1,11 +1,13 @@
-    <div class="annotation uploaders mockup">
-        <h3 class="type">Maintained by</h3>
-        <div class="body">
-          <ul>
-            <li><span class="createdBy">Stian Soiland-Reyes</span> 
-              <span class="createdOn">(last uploaded on 2012-12-24 18:40)</span</li>
-            <li><span class="createdBy">Khalid Belhajjame</span> 
-              <span class="createdOn">(last uploaded on 2012-11-02 18:40)</span</li>
-          </ul>
-        </div>
-      </div>  
+<% if @maintainers.count > 0 %>
+  <h3 class="type">Maintained by</h3>
+  <div class="body">
+    <ul>
+      <% @maintainers.each do |maintainer| %>
+        <li>
+          <span class="createdBy"><%= link_to(h(maintainer.label), polymorphic_path(maintainer)) -%></span> 
+          <% if false %><span class="createdOn">(last uploaded on 2012-12-24 18:40)</span><% end %>
+        </li>
+      <% end %>
+    </ul>
+  </div>
+<% end %>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]