More versioning support fixes, to allow on or off.
This commit is contained in:
parent
994af9dd3f
commit
e6b448f298
|
@ -8,7 +8,7 @@
|
||||||
% elif form.updating:
|
% elif form.updating:
|
||||||
<li>${h.link_to("View this Category", url('category.read', uuid=form.fieldset.model.uuid))}</li>
|
<li>${h.link_to("View this Category", url('category.read', uuid=form.fieldset.model.uuid))}</li>
|
||||||
% endif
|
% endif
|
||||||
% if not form.creating and request.has_perm('category.versions.view'):
|
% if version_count is not Undefined and request.has_perm('category.versions.view'):
|
||||||
<li>${h.link_to("View Change History ({0})".format(version_count), url('category.versions', uuid=form.fieldset.model.uuid))}</li>
|
<li>${h.link_to("View Change History ({0})".format(version_count), url('category.versions', uuid=form.fieldset.model.uuid))}</li>
|
||||||
% endif
|
% endif
|
||||||
</%def>
|
</%def>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<li>${h.link_to("Edit Printer Settings", url('label_profile.printer_settings', uuid=profile.uuid))}</li>
|
<li>${h.link_to("Edit Printer Settings", url('label_profile.printer_settings', uuid=profile.uuid))}</li>
|
||||||
% endif
|
% endif
|
||||||
% endif
|
% endif
|
||||||
% if not form.creating and request.has_perm('labelprofile.versions.view'):
|
% if version_count is not Undefined and request.has_perm('labelprofile.versions.view'):
|
||||||
<li>${h.link_to("View Change History ({0})".format(version_count), url('labelprofile.versions', uuid=form.fieldset.model.uuid))}</li>
|
<li>${h.link_to("View Change History ({0})".format(version_count), url('labelprofile.versions', uuid=form.fieldset.model.uuid))}</li>
|
||||||
% endif
|
% endif
|
||||||
</%def>
|
</%def>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<li>${h.link_to("View this Role", url('role.read', uuid=form.fieldset.model.uuid))}</li>
|
<li>${h.link_to("View this Role", url('role.read', uuid=form.fieldset.model.uuid))}</li>
|
||||||
% endif
|
% endif
|
||||||
<li>${h.link_to("Delete this Role", url('role.delete', uuid=form.fieldset.model.uuid), class_='delete')}</li>
|
<li>${h.link_to("Delete this Role", url('role.delete', uuid=form.fieldset.model.uuid), class_='delete')}</li>
|
||||||
% if not form.creating and request.has_perm('role.versions.view'):
|
% if version_count is not Undefined and request.has_perm('role.versions.view'):
|
||||||
<li>${h.link_to("View Change History ({0})".format(version_count), url('role.versions', uuid=form.fieldset.model.uuid))}</li>
|
<li>${h.link_to("View Change History ({0})".format(version_count), url('role.versions', uuid=form.fieldset.model.uuid))}</li>
|
||||||
% endif
|
% endif
|
||||||
</%def>
|
</%def>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
% elif form.updating:
|
% elif form.updating:
|
||||||
<li>${h.link_to("View this User", url('user.read', uuid=form.fieldset.model.uuid))}</li>
|
<li>${h.link_to("View this User", url('user.read', uuid=form.fieldset.model.uuid))}</li>
|
||||||
% endif
|
% endif
|
||||||
% if not form.creating and request.has_perm('user.versions.view'):
|
% if version_count is not Undefined and request.has_perm('user.versions.view'):
|
||||||
<li>${h.link_to("View Change History ({0})".format(version_count), url('user.versions', uuid=form.fieldset.model.uuid))}</li>
|
<li>${h.link_to("View Change History ({0})".format(version_count), url('user.versions', uuid=form.fieldset.model.uuid))}</li>
|
||||||
% endif
|
% endif
|
||||||
</%def>
|
</%def>
|
||||||
|
|
Loading…
Reference in a new issue