From f89f3a99334908af099f4ccfb73b8f19c06784e9 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 8 Feb 2016 20:34:12 +0100 Subject: [PATCH] Improved motion state dropdown element. --- openslides/core/static/css/app.css | 28 ++++++++++----- openslides/motions/static/js/motions/base.js | 2 ++ .../templates/motions/motion-detail.html | 35 +++++++++++-------- 3 files changed, 42 insertions(+), 23 deletions(-) diff --git a/openslides/core/static/css/app.css b/openslides/core/static/css/app.css index 752293fdf..c229a6f9f 100644 --- a/openslides/core/static/css/app.css +++ b/openslides/core/static/css/app.css @@ -51,7 +51,13 @@ h4 { font-size: 18px; color: #222; } - +.heading a { + color: #444; +} +.heading a:hover { + color: #2b6883; + text-decoration: none; +} p { padding-bottom: 14px; @@ -284,11 +290,6 @@ img { color: #444; } -.col1 .meta h3 { - padding-bottom: 0; - margin-bottom: 5px; -} - .col1 .details { padding: 20px; width: auto; @@ -317,14 +318,25 @@ img { width: 70px; } -#content .col2 h4, .col1 .meta h3 { +#content .col2 h4 { font-size: 22px; line-height: 24px; font-family: 'Roboto Condensed Light'; font-weight: 300; color: #444; } - +#content .col1 .meta .heading, #content .col1 .meta h3 { + font-size: 22px; + line-height: 24px; + font-weight: 300; + color: #444; + padding-bottom: 0; + margin-top: 20px; + margin-bottom: 5px; +} +#content .col1 .meta .heading .drop-down-name, #content .col1 .meta h3 { + font-family: 'Roboto Condensed Light'; +} #content .col2 a:hover h4 { text-decoration: none; diff --git a/openslides/motions/static/js/motions/base.js b/openslides/motions/static/js/motions/base.js index 6ed8e28a1..3f399cf5c 100644 --- a/openslides/motions/static/js/motions/base.js +++ b/openslides/motions/static/js/motions/base.js @@ -248,6 +248,8 @@ angular.module('OpenSlidesApp.motions', ['OpenSlidesApp.users']) return operator.hasPerms('motions.can_manage'); case 'reset_state': return operator.hasPerms('motions.can_manage'); + case 'can_manage': + return operator.hasPerms('motions.can_manage'); default: return false; } diff --git a/openslides/motions/static/templates/motions/motion-detail.html b/openslides/motions/static/templates/motions/motion-detail.html index 424e43799..db735b7b2 100644 --- a/openslides/motions/static/templates/motions/motion-detail.html +++ b/openslides/motions/static/templates/motions/motion-detail.html @@ -90,22 +90,27 @@ -

State

- +

State

+ +
{{ motion.state.name | translate }} - -
- -