Changeset 881:b84d272aaae9


Ignore:
Timestamp:
08/23/10 09:17:05 (3 years ago)
Author:
fl
Branch:
trunk
Message:

[svn r1227] minor bug fixes

Location:
adhocracy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • adhocracy/lib/helpers/page_helper.py

    r875 r881  
    3030    buf = cgi.escape(page.title) 
    3131    text_ = page.variant_head(variant) 
     32    if text_ is None: 
     33        return _("(Unknown)") 
    3234    if variant != text_.HEAD: 
    3335        buf = u"%s <code>(%s)</code>" % (buf, variant) 
  • adhocracy/templates/selection/tiles.html

    r873 r881  
    7676                <div class="top_actions aside"> 
    7777                        %if tile.show_new_variant_link: 
    78                                 <a class="button add" href="${h.entity_url(selection.page, member='%20/edit')}?proposal=${selection.proposal.id}">${_("new variant")}</a>  
     78                                <a class="button add" href="${h.entity_url(selection.page, member='branch')}?proposal=${selection.proposal.id}">${_("new variant")}</a>  
    7979                        %else: 
    8080                                <a class="button edit" href="${h.entity_url(selection.page)}">${_("see norm")}</a> 
Note: See TracChangeset for help on using the changeset viewer.