Commits

Daniel Blankenberg committed 1ddd5d6

Enable activating and reinstalling Repositories from the manage repository page.

Comments (0)

Files changed (1)

templates/admin/tool_shed_repository/manage_repository.mako

 <ul class="manage-table-actions">
     <li><a class="action-button" id="repository-${repository.id}-popup" class="menubutton">Repository Actions</a></li>
     <div popupmenu="repository-${repository.id}-popup">
+        %if repository.can_reinstall_or_activate:
+            <a class="action-button" href="${h.url_for( controller='admin_toolshed', action='browse_repositories', operation='activate or reinstall', id=trans.security.encode_id( repository.id ) )}">Activate or reinstall repository</a>
+        %endif
         %if repository.in_error_state:
             <a class="action-button" href="${h.url_for( controller='admin_toolshed', action='reset_to_install', id=trans.security.encode_id( repository.id ), reset_repository=True )}">Reset to install</a>
         %elif repository.can_install:
             <a class="action-button" href="${h.url_for( controller='admin_toolshed', action='manage_repository', id=trans.security.encode_id( repository.id ), operation='install' )}">Install</a>
-        %else:
+        %elif repository.can_uninstall:
             %if repository.has_readme:
                 <a class="action-button" href="${h.url_for( controller='admin_toolshed', action='view_readme', id=trans.security.encode_id( repository.id ) )}">View README</a>
             %endif