Browse Source

Don't link back to current page.

master
Ben Kurtovic 7 years ago
parent
commit
9acd3a85b8
2 changed files with 11 additions and 2 deletions
  1. +6
    -1
      templates/campaigns/navitem.mako
  2. +5
    -1
      templates/members/navitem.mako

+ 6
- 1
templates/campaigns/navitem.mako View File

@@ -1 +1,6 @@
Campaign: <a href="${url_for('campaigns.campaign')}">${current}</a>
Campaign:
% if request.url_rule.endpoint == "campaigns.campaign":
<strong>${current}</strong>
% else
<a href="${url_for('campaigns.campaign')}">${current}</a>
% endif

+ 5
- 1
templates/members/navitem.mako View File

@@ -1 +1,5 @@
<a href="${url_for('members.members')}">Members</a>
% if request.url_rule.endpoint == "members.members":
<strong>Members</strong>
% else
<a href="${url_for('members.members')}">Members</a>
% endif

Loading…
Cancel
Save