liquid_feedback_frontend
changeset 169:db91c2005278
better stylesheet for ignore area list
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Sat Oct 09 22:06:38 2010 +0200 (2010-10-09) |
parents | 1783a0c61734 |
children | da885b2dda29 |
files | app/main/initiative/_details.lua static/style.css |
line diff
1.1 --- a/app/main/initiative/_details.lua Sat Oct 09 21:45:36 2010 +0200 1.2 +++ b/app/main/initiative/_details.lua Sat Oct 09 22:06:38 2010 +0200 1.3 @@ -21,10 +21,12 @@ 1.4 label = _"Initiative quorum", 1.5 value = format.percentage(policy.initiative_quorum_num / policy.initiative_quorum_den) 1.6 } 1.7 - ui.field.text{ 1.8 - label = _"Currently required", 1.9 - value = math.ceil(initiative.issue.population * (policy.initiative_quorum_num / policy.initiative_quorum_den)), 1.10 - } 1.11 + if initiative.issue.population then 1.12 + ui.field.text{ 1.13 + label = _"Currently required", 1.14 + value = math.ceil(initiative.issue.population * (policy.initiative_quorum_num / policy.initiative_quorum_den)), 1.15 + } 1.16 + end 1.17 -- ui.field.date{ label = _"Revoked at", name = "revoked" } 1.18 ui.field.boolean{ label = _"Admitted", name = "admitted" } 1.19 end
2.1 --- a/static/style.css Sat Oct 09 21:45:36 2010 +0200 2.2 +++ b/static/style.css Sat Oct 09 22:06:38 2010 +0200 2.3 @@ -1222,7 +1222,7 @@ 2.4 div.ignore_area_list { 2.5 float: left; 2.6 width: 90%; 2.7 - margin: 20px 0 1em 0; 2.8 + margin: 0 0 1em 0; 2.9 } 2.10 2.11 div.ignore_area_list > 2.12 @@ -1241,8 +1241,9 @@ 2.13 div.ignore_area_item { 2.14 clear: none; 2.15 float: left; 2.16 - width: 20em; 2.17 + min-width: 10em; 2.18 margin: 0.1ex 0.5em; 2.19 + margin-right: 0.5em; 2.20 } 2.21 2.22 div.ignore_area_item > input {