aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/profile_tabs.tpl6
-rw-r--r--view/theme/dispy/profile_tabs.tpl10
-rw-r--r--view/theme/dispy/style.css1
3 files changed, 10 insertions, 7 deletions
diff --git a/view/profile_tabs.tpl b/view/profile_tabs.tpl
index 3628ff5ff..7820013b6 100644
--- a/view/profile_tabs.tpl
+++ b/view/profile_tabs.tpl
@@ -3,7 +3,7 @@
<a href="$url" id="profile-tab-status-link" class="profile-tabs" >$status</a>
<a href="$url?tab=profile" id="profile-tab-profile-link" class="profile-tabs" >$profile</a>
<a href="$phototab" id="profile-tab-photos-link" class="profile-tabs" >$photos</a>
- $events
- $notes
+ {{ if $events }}<a href="events" id="profile-tab-events-link" class="profile-tabs" >$events</a>{{ endif }}
+ {{ if $notes }}<a href="notes" id="profile-tab-notes-link" class="profile-tabs" >$notes</a>{{ endif }}
<div id="profile-tabs-end"></div>
-</div> \ No newline at end of file
+</div>
diff --git a/view/theme/dispy/profile_tabs.tpl b/view/theme/dispy/profile_tabs.tpl
index 63b6d48dd..c236490b2 100644
--- a/view/theme/dispy/profile_tabs.tpl
+++ b/view/theme/dispy/profile_tabs.tpl
@@ -1,7 +1,9 @@
<div class="tabs-wrapper" >
- <a href="$url" id="profile-tab-status-link" class="tabs" >$status</a>
- <a href="$url?tab=profile" id="profile-tab-profile-link" class="tabs" >$profile</a>
- <a href="$phototab" id="profile-tab-photos-link" class="tabs" >$photos</a>
+ <a href="$url" id="profile-tab-status-link" class="tabs {{if $activetab==posts}}active{{endif}}" >$status</a>
+ <a href="$url?tab=profile" id="profile-tab-profile-link" class="tabs {{if $activetab==profile}}active{{endif}}" >$profile</a>
+ <a href="$phototab" id="profile-tab-photos-link" class="tabs {{if $activetab==photos}}active{{endif}}" >$photos</a>
+ {{ if $events }}<a href="events" id="profile-tab-events-link" class="tabs {{if $activetab==events}}active{{endif}}" >$events</a>{{ endif }}
+ {{ if $notes }}<a href="notes" id="profile-tab-notes-link" class="tabs {{if $activetab==notes}}active{{endif}}" >$notes</a>{{ endif }}
<div class="tabs-end"></div>
-</div> \ No newline at end of file
+</div>
diff --git a/view/theme/dispy/style.css b/view/theme/dispy/style.css
index 34c880ac0..e0f5a46fb 100644
--- a/view/theme/dispy/style.css
+++ b/view/theme/dispy/style.css
@@ -371,6 +371,7 @@ section { margin: 10px 11% 0px 11%; font-size: 0.8em; padding-right: 230px;}
.tabs-wrapper li { display: inline;}
.tabs { padding: 0px 5px; margin-right: 10px; }
.tabs:hover { background-color: #729fcf; color: #eeeeec; border: 0px; }
+.tabs.active { background-color: #729fcf; color: #eeeeec; border: 0px; }
/**