~bac/charmworld/tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/templates/bundle.pt

Don't display 'Feature' for unpromulgated bundles.



https://codereview.appspot.com/78940044/

R=hatch.

Approved by Juju Gui Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
        <tal:edit condition="request.has_permission('edit')">
51
51
          <h4>Actions</h4>
52
 
            <p tal:condition="not is_featured">
53
 
              <a href="/bundle/${bundle.basket_name}/${bundle.name}/featured/edit">
54
 
                Feature
55
 
              </a>
56
 
            </p>
57
 
            <p tal:condition="is_featured">
58
 
              <a href="/bundle/${bundle.basket_name}/${bundle.name}/featured/edit">
59
 
                Unfeature
60
 
              </a>
61
 
            </p>
 
52
            <tal:promulgated condition="bundle.promulgated">
 
53
              <p tal:condition="not is_featured">
 
54
                <a href="/bundle/${bundle.basket_name}/${bundle.name}/featured/edit">
 
55
                  Feature
 
56
                </a>
 
57
              </p>
 
58
              <p tal:condition="is_featured">
 
59
                <a href="/bundle/${bundle.basket_name}/${bundle.name}/featured/edit">
 
60
                  Unfeature
 
61
                </a>
 
62
              </p>
 
63
            </tal:promulgated>
62
64
            <p>
63
65
              <a href="/${bundle.short_url}/delete">
64
66
                Delete