From: Arno Renevier Date: Thu, 11 Aug 2011 17:01:35 +0000 (+0200) Subject: increase title max size to 160 characters X-Git-Tag: v.0.3.5~1 X-Git-Url: https://dev.renevier.net/?p=syj.git;a=commitdiff_plain;h=aad2e1cbf0a34d096c28388457aabfb8c307221b increase title max size to 160 characters --- diff --git a/application/forms/Geom.php b/application/forms/Geom.php index 1714509..9dc5c38 100644 --- a/application/forms/Geom.php +++ b/application/forms/Geom.php @@ -26,8 +26,8 @@ class Syj_Form_Geom extends Zend_Form implements Syj_Processor_Interface $title = array('Text', 'geom_title', array( 'label' => __("optional title for this journey"), - 'attribs' => array('maxlength' => '40', 'size' => '20'), - 'validators' => array(new Zend_Validate_StringLength(0, 40)), + 'attribs' => array('maxlength' => '160', 'size' => '20'), + 'validators' => array(new Zend_Validate_StringLength(0, 160)), 'decorators' => array( 'ViewHelper', 'Errors', diff --git a/public/css/list.css b/public/css/list.css index 12e1a5b..b6cb7ad 100644 --- a/public/css/list.css +++ b/public/css/list.css @@ -38,6 +38,9 @@ *margin-top: -1em; /* in ie <=7, .control-link margin-bottom "pushes" .title */ height: 32px; clear: left; + overflow: hidden; + text-overflow: ellipsis; + -o-text-overflow: ellipsis; } .page-link { diff --git a/scripts/schema.postgres.sql b/scripts/schema.postgres.sql index ea8777d..bcbfef3 100644 --- a/scripts/schema.postgres.sql +++ b/scripts/schema.postgres.sql @@ -102,7 +102,7 @@ CREATE TABLE paths ( geom GEOGRAPHY (LINESTRING, 4326) NOT NULL, creator INTEGER REFERENCES users ON DELETE SET NULL, creator_ip INET NOT NULL, - title VARCHAR(40), + title VARCHAR(160), last_update TIMESTAMP NOT NULL DEFAULT NOW(), urlcomp VARCHAR(20) UNIQUE CHECK (urlcomp ~ '^[a-z][a-zA-Z0-9_]*$') -- ~: matches regular expression; case sensitive );