Review Board

beta

Display group "display name" in the dashboard

Updated 4 months, 3 weeks ago

Scott Francis Reviewers
reviewboard
None Review Board SVN
Currently the dashboard displays the group name rather than the display name.  I've updated the dashboard template to display the display name rather than the group name.
Viewed the dashboard and it worked. :-)

Diff revision 1 (Latest)

  1. trunk/reviewboard/templates/reviews/dashboard.html: 2 changes [ 1 2 ]
trunk/reviewboard/templates/reviews/dashboard.html
Revision 1438 New Change
32
{% dashboard_entry "main-item" "Starred Reviews"  "starred" %}
32
{% dashboard_entry "main-item" "Starred Reviews"  "starred" %}
33
{% dashboard_entry "main-item" "Outgoing Reviews" "outgoing" %}
33
{% dashboard_entry "main-item" "Outgoing Reviews" "outgoing" %}
34
{% dashboard_entry "main-item" "Incoming Reviews" "incoming" %}
34
{% dashboard_entry "main-item" "Incoming Reviews" "incoming" %}
35
{% dashboard_entry "sub-item"  "To Me"            "to-me" %}
35
{% dashboard_entry "sub-item"  "To Me"            "to-me" %}
36
{% for g in user.review_groups.all %}
36
{% for g in user.review_groups.all %}
37
{%  dashboard_entry "sub-item" g.name "to-group" g %}
37
{%  dashboard_entry "sub-item" g.display_name "to-group" g %}
38
{% endfor %}
38
{% endfor %}
39
{% ifnotequal user.get_profile.starred_groups.count 0 %}
39
{% ifnotequal user.get_profile.starred_groups.count 0 %}
40
{%  dashboard_entry "main-item" "Watched Groups" "watched-groups" %}
40
{%  dashboard_entry "main-item" "Watched Groups" "watched-groups" %}
41
{%  for g in user.get_profile.starred_groups.all %}
41
{%  for g in user.get_profile.starred_groups.all %}
42
{%   dashboard_entry "sub-item" g.name "to-group" g %}
42
{%   dashboard_entry "sub-item" g.display_name "to-group" g %}
43
{%  endfor %}
43
{%  endfor %}
44
  </tbody>
44
  </tbody>
45
{% endifnotequal %}
45
{% endifnotequal %}
46
 </table>
46
 </table>
47
 <div id="dashboard-main" class="clearfix">
47
 <div id="dashboard-main" class="clearfix">
48
{{datagrid.render_listview}}
48
{{datagrid.render_listview}}
49
 </div>
49
 </div>
50
</div>
50
</div>
51
{% endbox %}
51
{% endbox %}
52
{% endblock %}
52
{% endblock %}
  1. trunk/reviewboard/templates/reviews/dashboard.html: 2 changes [ 1 2 ]