##// END OF EJS Templates
repo: show hooks version and update link in advanced section of repository.
marcink -
r3377:e2435f87 default
parent child Browse files
Show More
@@ -779,6 +779,9 b' class BaseRepository(object):'
779 779 def install_hooks(self, force=False):
780 780 return self._remote.install_hooks(force)
781 781
782 def get_hooks_info(self):
783 return self._remote.get_hooks_info()
784
782 785
783 786 class BaseCommit(object):
784 787 """
@@ -113,6 +113,37 b''
113 113 </div>
114 114
115 115
116 <div class="panel panel-default">
117 <div class="panel-heading" id="advanced-hooks">
118 <h3 class="panel-title">${_('Hooks')} <a class="permalink" href="#advanced-hooks"></a></h3>
119 </div>
120 <div class="panel-body">
121 <% ver_info_dict = c.rhodecode_db_repo.scm_instance().get_hooks_info() %>
122
123 <table class="rctable">
124 <th>${_('Hook type')}</th>
125 <th>${_('Hook version')}</th>
126 <th>${_('Current version')}</th>
127
128 <tr>
129 <td>${_('PRE HOOK')}</td>
130 <td>${ver_info_dict['pre_version']}</td>
131 <td>${c.rhodecode_version}</td>
132 </tr>
133 <tr>
134 <td>${_('POST HOOK')}</td>
135 <td>${ver_info_dict['post_version']}</td>
136 <td>${c.rhodecode_version}</td>
137 </tr>
138 </table>
139
140 <a href="${h.route_path('edit_repo_advanced_hooks', repo_name=c.repo_name)}"
141 onclick="return confirm('${_('Confirm to reinstall hooks for this repository.')}');">
142 ${_('Update Hooks')}
143 </a>
144 </div>
145 </div>
146
116 147 <div class="panel panel-warning">
117 148 <div class="panel-heading" id="advanced-archive">
118 149 <h3 class="panel-title">${_('Archive repository')} <a class="permalink" href="#advanced-archive"></a></h3>
General Comments 0
You need to be logged in to leave comments. Login now