Skip to content

Commit 7189459

Browse files
committed
Tweak the menubar listing of community tracking to show when login is needed, some other text tweaks, and fitting the I-D tracking links under Drafts and RFCs where they seem to belong.
- Legacy-Id: 4568
1 parent 1bc2f7d commit 7189459

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

ietf/community/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def check_manager(self, user):
4141

4242
def short_name(self):
4343
if self.user:
44-
return 'Personal list'
44+
return 'My tracked I-Ds'
4545
else:
46-
return '%s list' % self.group.acronym
46+
return '%s tracked I-Ds' % self.group.acronym
4747

4848
def long_name(self):
4949
if self.user:

ietf/templates/base_leftmenu.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% comment %}
1+
{% comment %}<!--
22
Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
33
All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>
44
@@ -30,7 +30,7 @@
3030
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3131
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3232
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33-
33+
-->
3434
{% endcomment %}
3535
{% load wg_menu %}
3636
{% load ietf_filters ietf_streams community_tags %}
@@ -77,20 +77,24 @@
7777
<li><a href="http://tools.ietf.org/wg/concluded">Concluded WGs</a></li>
7878
<li><a href="http://www.ietf.org/list/nonwg.html">Non-WG Lists</a></li>
7979

80+
81+
<li class="sect">Drafts&nbsp;&amp;&nbsp;RFCs</li>
82+
<li><a href="/doc/">Document search:</a></li>
83+
<li><form action="/doc/search/" method="get" style="padding-bottom:0;margin-bottom:0;"><input type="text" style="margin-left:10px; width:100px; border:1px solid #89d;" name="name" /><input type="hidden" name="activeDrafts" value="on"/><input type="hidden" name="rfcs" value="on"/></form></li>
84+
<li><a href="{% url submit_index %}">Submit a draft</a></li>
85+
{% if user|in_group:"WG Chair" %}
86+
<li><a href="{% url submit_approvals %}">Approve a draft</a></li>
87+
{% endif %}
8088
{% get_user_managed_lists user as community_lists %}
8189
{% if community_lists %}
82-
<li class="sect">Community ID lists</li>
83-
<li><a href="{{ community_lists.personal.get_manage_url }}">{{ community_lists.personal.short_name }}</a>
90+
<li><a href="{{ community_lists.personal.get_manage_url }}">{{ community_lists.personal.short_name }}</a>&nbsp;
8491
{% for cl in community_lists.group %}
8592
<li><a href="{{ cl.get_manage_url }}">{{ cl.short_name }}</a>
8693
{% endfor %}
94+
{% else %}
95+
<li><a href="http://{{ request.get_host }}/accounts/login/?next={{request.get_full_path|urlencode}}" rel="nofollow">Sign in to track drafts</a></li>
8796
{% endif %}
8897

89-
<li class="sect">Drafts&nbsp;&amp;&nbsp;RFCs</li>
90-
<li><a href="/doc/">Search</a></li>
91-
<li><form action="/doc/search/" method="get" style="padding-bottom:0;margin-bottom:0;"><input type="text" style="margin-left:10px; width:100px; border:1px solid #89d;" name="name" /><input type="hidden" name="activeDrafts" value="on"/><input type="hidden" name="rfcs" value="on"/></form></li>
92-
<li><a href="{% url submit_index %}">Submit a draft</a></li>
93-
9498

9599
<li class="sect">Meetings</li>
96100
<li><a href="/meeting/agenda/">Agenda</a></li>

0 commit comments

Comments
 (0)