diff options
author | mkanat%bugzilla.org <> | 2009-01-22 05:08:35 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-01-22 05:08:35 +0100 |
commit | c7b2b76566b8258c676967537986e996c17c3d8d (patch) | |
tree | ead1d770b601720c2aac9bdfc3133cd56071d694 /template/en/default/global | |
parent | fdfe948ab5eea11a0ce98b84044308a6f95adfa0 (diff) | |
download | bugzilla-c7b2b76566b8258c676967537986e996c17c3d8d.tar.gz bugzilla-c7b2b76566b8258c676967537986e996c17c3d8d.tar.xz |
Bug 472872: Add a field where people can put the URLs to Bugzilla bugs (from any Bugzilla installation)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/field-descs.none.tmpl | 5 | ||||
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl index 324edb592..403002074 100644 --- a/template/en/default/global/field-descs.none.tmpl +++ b/template/en/default/global/field-descs.none.tmpl @@ -76,6 +76,7 @@ "reporter_accessible" => "Reporter accessible", "requestees.login_name" => "Flag Requestee", "resolution" => "Resolution", + "see_also" => "See Also", "setters.login_name" => "Flag Setter", "setting" => "Setting", "settings" => "Settings", @@ -90,12 +91,14 @@ Description here, by copying their Description from the database. If you want to override this for your language or your installation, just use a hook. %] - +[%# Also create the bug_fields hash. %] [% UNLESS Param('shutdownhtml') %] [% USE Bugzilla %] + [% SET bug_fields = {} %] [% FOREACH bz_field = Bugzilla.get_fields() %] [% SET field_descs.${bz_field.name} = bz_field.description IF !field_descs.${bz_field.name}.defined %] + [% SET bug_fields.${bz_field.name} = bz_field %] [% END %] [% END %] diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 39077c542..8b7d8e6ff 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -229,6 +229,24 @@ [% bug_id FILTER url_quote %]&GoAheadAndLogIn=1">log in to an account</a> with the appropriate permissions. + [% ELSIF error == "bug_url_invalid" %] + [% title = "Invalid Bug URL" %] + <code>[% url FILTER html %]</code> is not a valid URL to [% terms.abug %]. + [% IF reason == 'http' %] + URLs must start with "http" or "https". + [% ELSIF reason == 'show_bug' %] + [%+ terms.Bug %] URLs should point to <code>show_bug.cgi</code> + in a [% terms.Bugzilla %] installation. + [% ELSIF reason == 'id' %] + There is no valid [% terms.bug %] id in that URL. + [% END %] + + [% ELSIF error == "bug_url_too_long" %] + [% title = "Invalid Bug URL" %] + [% terms.Bug %] URLs can not be longer than + [%+ constants.MAX_BUG_URL_LENGTH FILTER none %] characters long. + <code>[% url FILTER html %]</code> is too long. + [% ELSIF error == "buglist_parameters_required" %] [% title = "Parameters Required" %] [% docslinks = {'query.html' => "Searching for $terms.bugs", |