Show More
@@ -26,7 +26,7 b'' | |||||
26 | ${h.link_to(_('download as raw'),h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.file_changeset.raw_id,f_path=c.f_path),class_="ui-btn")} |
|
26 | ${h.link_to(_('download as raw'),h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.file_changeset.raw_id,f_path=c.f_path),class_="ui-btn")} | |
27 | % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): |
|
27 | % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): | |
28 | % if c.on_branch_head and c.changeset.branch and c.file.is_binary is False: |
|
28 | % if c.on_branch_head and c.changeset.branch and c.file.is_binary is False: | |
29 |
${h.link_to(_('edit on branch:%s' % c.changeset.branch |
|
29 | ${h.link_to(_('edit on branch:%s') % c.changeset.branch,h.url('files_edit_home',repo_name=c.repo_name,revision=c.changeset.branch,f_path=c.f_path),class_="ui-btn")} | |
30 | %else: |
|
30 | %else: | |
31 | ${h.link_to(_('edit on branch:?'), '#', class_="ui-btn disabled tooltip", title=_('Editing files allowed only when on branch head revision'))} |
|
31 | ${h.link_to(_('edit on branch:?'), '#', class_="ui-btn disabled tooltip", title=_('Editing files allowed only when on branch head revision'))} | |
32 | % endif |
|
32 | % endif |
General Comments 0
You need to be logged in to leave comments.
Login now