liquid_feedback_frontend

changeset 141:20e0b64cc1f9

use monospace/pre data on suggestion display and entry

this allows better formatting on the user suggestions without the overhead of using wiki there

fixes bug #215
author Daniel Poelzleithner <poelzi@poelzi.org>
date Wed Oct 06 14:34:45 2010 +0200 (2010-10-06)
parents 21ddb78dd09d
children 44ba79952610
files app/main/suggestion/_suggestion.lua app/main/suggestion/new.lua static/style.css
line diff
     1.1 --- a/app/main/suggestion/_suggestion.lua	Wed Oct 06 14:14:23 2010 +0200
     1.2 +++ b/app/main/suggestion/_suggestion.lua	Wed Oct 06 14:34:45 2010 +0200
     1.3 @@ -13,7 +13,7 @@
     1.4        attr = { class = "suggestion_content wiki" },
     1.5        content = function()
     1.6          ui.tag{
     1.7 -          tag = "p",
     1.8 +          tag = "pre",
     1.9            content = suggestion.description
    1.10          }
    1.11        end
     2.1 --- a/app/main/suggestion/new.lua	Wed Oct 06 14:14:23 2010 +0200
     2.2 +++ b/app/main/suggestion/new.lua	Wed Oct 06 14:34:45 2010 +0200
     2.3 @@ -38,7 +38,7 @@
     2.4        }
     2.5      end
     2.6      ui.field.text{ label = _"Title (80 chars max)",        name = "name" }
     2.7 -    ui.field.text{ label = _"Description", name = "description", multiline = true }
     2.8 +    ui.field.text{ label = _"Description", name = "description", multiline = true, attr={id="suggestion_description"}}
     2.9      ui.field.select{
    2.10        label = _"Degree",
    2.11        name = "degree",
     3.1 --- a/static/style.css	Wed Oct 06 14:14:23 2010 +0200
     3.2 +++ b/static/style.css	Wed Oct 06 14:34:45 2010 +0200
     3.3 @@ -950,6 +950,12 @@
     3.4    padding-right: 1ex;
     3.5  }
     3.6  
     3.7 +
     3.8 +.suggestion_content,
     3.9 +#suggestion_description {
    3.10 +  font-family: monospace;
    3.11 +}
    3.12 +
    3.13  .diff {
    3.14    background-color: #eee;
    3.15    border: 1px solid #ccc;

Impressum / About Us