summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorKoosha Khajeh Moogahi <koosha.khajeh@gmail.com>2012-08-18 19:06:44 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-08-18 19:06:44 +0200
commitc6c54c2e4235783544c44c08e4e55d4057556588 (patch)
tree2014f444a3de707c4aa47ddbd29aa77347c54500 /template/en/default
parentca3d59070b8e470c3c82399f62e8b801db043e89 (diff)
downloadbugzilla-c6c54c2e4235783544c44c08e4e55d4057556588.tar.gz
bugzilla-c6c54c2e4235783544c44c08e4e55d4057556588.tar.xz
Bug 187753: Specify a maximum length for quips (512 characters)
r/a=LpSolit
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/global/user-error.html.tmpl6
-rw-r--r--template/en/default/list/quips.html.tmpl2
2 files changed, 7 insertions, 1 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 8f4d7d21c..2d79bf851 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -1479,6 +1479,12 @@
<a href="page.cgi?id=quicksearch.html#fields">listed here</a>.</p>
[% END %]
+ [% ELSIF error == "quip_too_long" %]
+ [% title = "Quip Too Long" %]
+ You entered a quip with a length of [% length FILTER none %] characters,
+ but the maximum allowed length is [% constants.MAX_QUIP_LENGTH FILTER none %]
+ characters.
+
[% ELSIF error == "reassign_to_empty" %]
[% title = "Illegal Reassignment" %]
To reassign [% terms.abug %], you must provide an address for
diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl
index f38d98221..31e766a9b 100644
--- a/template/en/default/list/quips.html.tmpl
+++ b/template/en/default/list/quips.html.tmpl
@@ -61,7 +61,7 @@
<input type="hidden" name="action" value="add">
<input type="hidden" name="token"
value="[% issue_hash_token(['create-quips']) FILTER html %]">
- <input size="80" name="quip">
+ <input size="80" name="quip" maxlength="512">
<p>
<input type="submit" id="add" value="Add This Quip">
</p>