myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [3055] branches/versions/app/views: removed use o


From: noreply
Subject: [myexperiment-hackers] [3055] branches/versions/app/views: removed use of selectTab() from the views
Date: Sat, 28 Jul 2012 22:37:44 +0000 (UTC)

Revision
3055
Author
dgc
Date
2012-07-28 22:37:44 +0000 (Sat, 28 Jul 2012)

Log Message

removed use of selectTab() from the views

Modified Paths

Diff

Modified: branches/versions/app/views/contributions/_citations_tab.rhtml (3054 => 3055)


--- branches/versions/app/views/contributions/_citations_tab.rhtml	2012-07-28 22:30:43 UTC (rev 3054)
+++ branches/versions/app/views/contributions/_citations_tab.rhtml	2012-07-28 22:37:44 UTC (rev 3055)
@@ -2,6 +2,7 @@
   <div class="tabTitle">Citations (<%= item.citations.length -%>)</div>
   <div class="tabContent">
 
+    <a name="citations"></a>
     <% unless (citations = item.citations).empty? %>
       <% citations.each_index do |i| %>
         <p>

Modified: branches/versions/app/views/contributions/_statistics_box.rhtml (3054 => 3055)


--- branches/versions/app/views/contributions/_statistics_box.rhtml	2012-07-28 22:30:43 UTC (rev 3054)
+++ branches/versions/app/views/contributions/_statistics_box.rhtml	2012-07-28 22:37:44 UTC (rev 3055)
@@ -42,9 +42,7 @@
 				
 				<% if allow_citations? type %>
 					<p>
-			      <!-- for this to work properly, view for every resource that supports citations will need to have -->
-						<!-- tab system with 'tabsContainer' element + anchor called 'citations' -->
-						<a href=""  pluralize contributable.citations.count, "citation" %></a>
+						<a href="" pluralize contributable.citations.count, "citation" %></a>
 			    </p>
 				<% end %>
 				

Modified: branches/versions/app/views/networks/show.rhtml (3054 => 3055)


--- branches/versions/app/views/networks/show.rhtml	2012-07-28 22:30:43 UTC (rev 3054)
+++ branches/versions/app/views/networks/show.rhtml	2012-07-28 22:37:44 UTC (rev 3055)
@@ -42,21 +42,20 @@
 	|
 	<%= link_to "Members (address@hidden)", "#group_members" %>
 	|
-	<!-- NB! IDs of tabs for selectTab() might easily change! -->
-	<a href="" 
+	<a href=""
 	|
-	<a href=""  Items (<%= @shared_items.length -%>)</a>
+	<a href="" Items (<%= @shared_items.length -%>)</a>
 	|
-	<a href=""  (<%= @network.creditations.length -%>)</a>
+	<a href="" (<%= @network.creditations.length -%>)</a>
 	|
 	<% if mine? @network %>
-	  <a href=""  Memberships</a>
+	  <a href="" Memberships</a>
 		|
 		<% cnt = @network.memberships_requested.length %>
-		<a href=""  unless cnt == 0 %><b><% end %>Requests Pending (<%= cnt -%>)<% unless cnt == 0 %></b><% end %></a>
+		<a href="" unless cnt == 0 %><b><% end %>Requests Pending (<%= cnt -%>)<% unless cnt == 0 %></b><% end %></a>
 		|
 		<% cnt = @network.memberships_invited.length %>
-		<a href=""  unless cnt == 0 %><b><% end %>Invites Pending (<%= cnt -%>)<% unless cnt == 0 %></b><% end %></a>
+		<a href="" unless cnt == 0 %><b><% end %>Invites Pending (<%= cnt -%>)<% unless cnt == 0 %></b><% end %></a>
 		|
 		<br/>
 		|
@@ -134,7 +133,7 @@
 		<p>
 			<b>
 				This group has been credited
-				<a href=""  pluralize(@network.creditations.length, "time") -%></a>
+				<a href="" pluralize(@network.creditations.length, "time") -%></a>
 				<a name="group_creditations"></a>
 	  	</b>
 		</p>
@@ -155,18 +154,18 @@
 
 <div id="tabsContainer" class="tabsContainer"></div>
 
-<a name="news"></a>
 <div class="tabContainer">
   <div class="tabTitle">News</div>
   <div class="tabContent">  
+    <a name="news"></a>
     <%= render :partial => "layouts/news", :locals => { :collection => news(@network, true) } %>
   </div>
 </div>
 
-<a name="shared_items"></a>
 <div class="tabContainer">
   <div class="tabTitle">Shared Items (<%= @shared_items.length -%>)</div>
   <div class="tabContent" id="shared_items">
+    <a name="shared_items"></a>
 		<% unless @shared_items.empty? %>
   		<%= view_privileges_notice %>
 
@@ -189,11 +188,11 @@
 	</div>
 </div>
 
-<a name="creditations"></a>
 <div class="tabContainer">
   <div class="tabTitle">Creditations (<%= @network.creditations.length -%>)</div>
   <div class="tabContent">  
     
+    <a name="creditations"></a>
     <% unless (creditations = @network.creditations).empty? %>
 			<%= view_privileges_notice %>
       <% creditations.each do |c| %>
@@ -211,10 +210,10 @@
 <% if logged_in? && @network.administrator?(current_user.id) %>
   
   <% memberships = @network.memberships_accepted %>
-  <a name="manage_memberships"></a>
 	<div class="tabContainer">
     <div class="tabTitle">Manage Memberships</div>
     <div class="tabContent">
+      <a name="manage_memberships"></a>
     	<% unless memberships.empty? %>
       	<%= render :partial => "memberships/table", :locals => { :collection => memberships, :network => false } %>
 			<% else %>
@@ -224,10 +223,10 @@
   </div>
   
 	<% requests = @network.memberships_requested %>
-  <a name="requests_pending"></a>
   <div class="tabContainer">
     <div class="tabTitle">Requests Pending (<%= @network.memberships_requested.length -%>)</div>
     <div class="tabContent">
+      <a name="requests_pending"></a>
     	<% unless requests.empty? %>
 				<p></p>
       	<%= render :partial => "memberships/table", :locals => { :collection => requests, :network => false } %>
@@ -238,10 +237,10 @@
   </div>
 	
 	<% invited = @network.memberships_invited %>
-  <a name="invites_pending"></a>
 	<div class="tabContainer">
     <div class="tabTitle">Invites Pending (<%= @network.memberships_invited.length -%>)</div>
     <div class="tabContent">
+      <a name="invites_pending"></a>
     	<% unless invited.empty? %>
 				<p></p>
       	<%= render :partial => "memberships/table", :locals => { :collection => invited, :network => false } %>

Modified: branches/versions/app/views/packs/show.rhtml (3054 => 3055)


--- branches/versions/app/views/packs/show.rhtml	2012-07-28 22:30:43 UTC (rev 3054)
+++ branches/versions/app/views/packs/show.rhtml	2012-07-28 22:37:44 UTC (rev 3055)
@@ -22,8 +22,7 @@
 		|
 	<% end %>
 	<% if logged_in? and @pack.owner? current_user %>
-	  <!-- NB! Index of the 'sharing' tab might change! -->
-	  <a href="" 
+	  <a href=""
 		|
 	<% end %>
 	<%= link_to "Tags <span id='mini_nav_tag_link'>(address@hidden)</span>", "#tags" %>
@@ -169,11 +168,11 @@
 	
 <% if logged_in? and @pack.owner? current_user %>
   
-	<a name="sharing"></a>
 	<div class="tabContainer">
     <div class="tabTitle">Sharing</div>
     <div class="tabContent">
 
+      <a name="sharing"></a>
       <%= render :partial => "contributions/sharing_summary",  :locals => { :contributable => @pack } %>
       <%= render :partial => "contributions/updating_summary", :locals => { :contributable => @pack } %>
 	  

reply via email to

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