diff options
author | lpsolit%gmail.com <> | 2005-08-29 02:41:52 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-08-29 02:41:52 +0200 |
commit | f9923bc84e424f481122ee758b235d026aed80c2 (patch) | |
tree | 27ec922f943f81234c710eda108561ef7d22935e /template/en/default/admin/milestones | |
parent | bc7607c1c4e31b9583a6a772c41567c1b1928e6d (diff) | |
download | bugzilla-f9923bc84e424f481122ee758b235d026aed80c2.tar.gz bugzilla-f9923bc84e424f481122ee758b235d026aed80c2.tar.xz |
Bug 302955: Remove the "delete" link for the default milestone - Patch by Gavin Shelley <bugzilla@chimpychompy.org> r=LpSolit a=justdave
Diffstat (limited to 'template/en/default/admin/milestones')
-rw-r--r-- | template/en/default/admin/milestones/list.html.tmpl | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/template/en/default/admin/milestones/list.html.tmpl b/template/en/default/admin/milestones/list.html.tmpl index 160dcd6da..d36b61a3d 100644 --- a/template/en/default/admin/milestones/list.html.tmpl +++ b/template/en/default/admin/milestones/list.html.tmpl @@ -54,24 +54,37 @@ name => "sortkey" heading => "Sortkey" }, + { + name => "action" + heading => "Action" + content => "Delete" + contentlink => delete_contentlink + } ] %] -[% columns.push({ - heading => "Action" - content => "Delete" - contentlink => delete_contentlink - }) %] +[%# We want to override the usual 'Delete' link for the default + milestone %] +[% overrides.action = [ { + match_value => "$default_milestone" + match_field => 'name' + override_content => 1 + content => "(Default milestone)" + override_contentlink => 1 + contentlink => undef + } ] +%] [% PROCESS admin/table.html.tmpl columns = columns data = milestones + overrides = overrides %] <p> [% PROCESS admin/milestones/footer.html.tmpl no_edit_other_milestones_link = 1 - %] +%] [% PROCESS global/footer.html.tmpl %] |