Modified: branches/event_logging/app/views/home/_summary.rhtml (2000 => 2001)
--- branches/event_logging/app/views/home/_summary.rhtml 2008-11-21 18:57:44 UTC (rev 2000)
+++ branches/event_logging/app/views/home/_summary.rhtml 2008-11-21 19:07:20 UTC (rev 2001)
@@ -2,6 +2,10 @@
<% # NB! _javascript_ code opening correct tabs may break easily if the tab layout changes! -%>
<% summary_box_max_length = 25 -%>
+<% # NB! Tabs need to have IDs advanced by 1 if the user is logged in, because -%>
+<% # "My News" tab is added in front of others -%>
+<% tab_id_correction = logged_in? ? 1 : 0 -%>
+
<div class="box">
<b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>
<div class="box_title">
@@ -22,7 +26,7 @@
<% end %>
</ul>
<p style="text-align: right; font-weight: bold; padding-top: 0; margin: 0 0 0.5em 0;">
- <a href=""
+ <a href="" 1+tab_id_correction -%>)">more...</a>
</p>
<% else %>
<p class="none_text">None</p>
@@ -41,7 +45,7 @@
<% end %>
</ul>
<p style="text-align: right; font-weight: bold; padding-top: 0; margin: 0 0 0.5em 0;">
- <a href=""
+ <a href="" 1+tab_id_correction -%>)">more...</a>
</p>
<% else %>
<p class="none_text">None</p>
@@ -60,7 +64,7 @@
<% end -%>
</ul>
<p style="text-align: right; font-weight: bold; padding-top: 0; margin: 0 0 0.5em 0;">
- <a href=""
+ <a href="" 2+tab_id_correction -%>)">more...</a>
</p>
<% else %>
<p class="none_text">None</p>
@@ -79,7 +83,7 @@
<% end -%>
</ul>
<p style="text-align: right; font-weight: bold; padding-top: 0; margin: 0 0 0.5em 0;">
- <a href=""
+ <a href="" 3+tab_id_correction -%>)">more...</a>
</p>
<% else %>
<p class="none_text">None</p>
@@ -104,7 +108,7 @@
<% end %>
</ul>
<p style="text-align: right; font-weight: bold; padding-top: 0; margin: 0 0 0.5em 0;">
- <a href=""
+ <a href="" 4+tab_id_correction -%>)">more...</a>
</p>
<% else %>
<p class="none_text">None</p>
@@ -134,7 +138,7 @@
<% end %>
</ul>
<p style="text-align: right; font-weight: bold; padding-top: 0; margin: 0 0 0.5em 0;">
- <a href=""
+ <a href="" 4+tab_id_correction -%>)">more...</a>
</p>
<% else %>
<p class="none_text">None</p>
@@ -165,7 +169,7 @@
<% end %>
</ul>
<p style="text-align: right; font-weight: bold; padding-top: 0; margin: 0 0 0.5em 0;">
- <a href=""
+ <a href="" 5+tab_id_correction -%>)">more...</a>
</p>
<% else %>
<p class="none_text">None</p>
@@ -197,7 +201,7 @@
<% end %>
</ul>
<p style="text-align: right; font-weight: bold; padding-top: 0; margin: 0 0 0.5em 0;">
- <a href=""
+ <a href="" 5+tab_id_correction -%>)">more...</a>
</p>
<% else %>
<p class="none_text">None</p>