diff --git a/inyoka_theme_default/static/style/inyoka/inyoka.less b/inyoka_theme_default/static/style/inyoka/inyoka.less index 9df8ed9..6e2b169 100644 --- a/inyoka_theme_default/static/style/inyoka/inyoka.less +++ b/inyoka_theme_default/static/style/inyoka/inyoka.less @@ -217,7 +217,12 @@ html, body { } } -button, input[type="button"], input[type="submit"] { +a.button { + &:extend(.btn); + &:extend(.btn-primary); +} + +.button, button, input[type="button"], input[type="submit"] { &:extend(.btn); &:extend(.btn-primary); margin-top: 10px; diff --git a/inyoka_theme_default/static/style/inyoka/portal.less b/inyoka_theme_default/static/style/inyoka/portal.less old mode 100644 new mode 100755 index a4148d0..c379623 --- a/inyoka_theme_default/static/style/inyoka/portal.less +++ b/inyoka_theme_default/static/style/inyoka/portal.less @@ -32,12 +32,105 @@ } } } + &-usericon { font-size: 20ex; text-align: center; vertical-align: middle; } + .private-message { + &-unread { + font-weight: bold; + } + } + + &-privmsg-table { + @media (min-width: @screen-md-min) { + .actionscol {width:10%;} + .deletecol {width:14%;} + } + @media (min-width: @screen-lg-min) { + .actionscol {width:10%;} + .deletecol {width:12%;} + } + .actions { + text-align: right; + } + th { + &.delete { + text-align: center; + input { + margin-left: 5px; + } + } + &.actions { + text-align: center; + } + } + .pn_delete { + text-align: center; + } + } + + .message { + margin-bottom: 25px; + .head { + background: @gray-lighter; + padding:10px 8px; + border: 1px solid #ddd; + @media (max-width: @screen-xs-max) { + position: relative; + } + .avatar { + @media (max-width: @screen-xs-max) { + position: absolute; + right: 8px; + top: 10px; + } + text-align: center; + .fa_icon-user { + font-size:25px; + } + } + } + .body { + background: #fff; + padding: 15px 8px; + border-left: 1px solid #ddd; + border-right: 1px solid #ddd; + blockquote { + font-size: @font-size-base; + } + } + .foot{ + background: @gray-lighter; + border: 1px solid #ddd; + padding: 15px; + ul { + &:extend(.list-inline); + li { + &:extend(.list-inline > li); + border-right: 1px solid @gray-light; + &:last-child { + border-right:none; + } + } + } + span[class^='fa_icon'] { + @media (max-width: @screen-xs-max) { + font-size: 20px; + margin:0 8px; + } + } + .text { + @media (max-width: @screen-xs-max) { + display: none; + } + } + } + } + .usercp_subscriptions { .items { width: 100%; diff --git a/inyoka_theme_default/templates/confirm_action_flash.html b/inyoka_theme_default/templates/confirm_action_flash.html new file mode 100755 index 0000000..2a53110 --- /dev/null +++ b/inyoka_theme_default/templates/confirm_action_flash.html @@ -0,0 +1,13 @@ +{# + confirm_action_flash.html + ~~~~~~~~~~~~~~~~~~~~~~~~~ + + :copyright: (c) 2013-2015 by the Inyoka Team, see AUTHORS for more details. + :license: BSD, see LICENSE for more details. +#} +{% import 'macros.html' as macros %} + +{% call macros.outer_form(csrf_token(), form, action=action_url|e, manually_rendered=True, submit_label=confirm_label|e) %} +
{{ message|e }}
+ +{% endcall %} diff --git a/inyoka_theme_default/templates/portal/privmsg/base.html b/inyoka_theme_default/templates/portal/privmsg/base.html new file mode 100755 index 0000000..37c7498 --- /dev/null +++ b/inyoka_theme_default/templates/portal/privmsg/base.html @@ -0,0 +1,28 @@ +{# + portal/privmsg/base.html + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + :copyright: (c) 2013-2015 by the Inyoka Team, see AUTHORS for more details. + :license: BSD, see LICENSE for more details. +#} + +{% extends 'portal/base.html' %} + +{% block title %} + {{ _('Messages') }} - {{ super() }} +{% endblock %} + +{% block breadcrumb %} + {{ super() }} + {{ macros.breadcrumb_item(_('Messages'), href('portal', 'privmsg')) }} +{% endblock %} + +{% block sidebar %} + {% call macros.sidebar() %} + {{ macros.sidebar_item(_('Inbox'), href('portal', 'privmsg', 'inbox'), 'fa_icon-inbox') }} + {{ macros.sidebar_item(_('Sent Mail'), href('portal', 'privmsg', 'sent') , 'fa_icon-share-square') }} + {{ macros.sidebar_item(_('Archive'), href('portal', 'privmsg', 'archive'), 'fa_icon-archive') }} + {{ macros.sidebar_item(_('Trash'), href('portal', 'privmsg', 'trash'), 'fa_icon-trash') }} + {{ macros.sidebar_item(_('Compose message'), href('portal', 'privmsg', 'new'), 'fa_icon-envelope-square') }} + {% endcall %} +{% endblock %} diff --git a/inyoka_theme_default/templates/portal/privmsg/index.html b/inyoka_theme_default/templates/portal/privmsg/index.html new file mode 100755 index 0000000..5138355 --- /dev/null +++ b/inyoka_theme_default/templates/portal/privmsg/index.html @@ -0,0 +1,211 @@ +{# + portal/privmsg/index.html + ~~~~~~~~~~~~~~~~~~~~~~~~~ + + Display a list of private messages. + + :copyright: (c) 2013-2015 by the Inyoka Team, see AUTHORS for more details. + :license: BSD, see LICENSE for more details. +#} + +{% extends 'portal/privmsg/base.html' %} + +{% block title %} + {{ folder.name }} - {{ super() }} +{% endblock %} + +{% block breadcrumb %} + {{ super() }} + {{ macros.breadcrumb_item(_(folder.name)) }} +{% endblock %} + +{% block content %} + {% if message %} + + {% endif %} + + {% call macros.outer_form(csrf_token(), form, button_visible=False, manually_rendered=True) %} +| {% trans %}Subject{% endtrans %} | +{% trans %}From{% endtrans %} | +{% trans %}To{% endtrans %} | +{% trans %}Date{% endtrans %} | +{% trans %}Actions{% endtrans %} | ++ |
|---|---|---|---|---|---|
| + + {{ entry.message.subject|e|truncate(50) }} + + | ++ + {{ entry.message.author|e }} + + | ++ {% if entry.message.recipients|length == 0 %} + + {{ entry.message.author|e }} + + {% else %} + + {{ entry.message.recipients[0]|e }} + + {% endif %} + {% if entry.message.recipients|length > 1 %}, …{% endif %} + | +{{ entry.message.pub_date|datetime }} | ++ {% if not entry.is_own_message %} + {% if entry.message.author.is_active %} + + + + {% endif %} + {% if entry.message.recipients|length > 1 %} + + + + {% endif %} + {% endif %} + + + + {% if not entry.in_archive %} + + + + {% endif %} + | ++ + | +
| + {% trans %}Currently there are no messages in this folder.{% endtrans %} + | +|||||