Improved legal notice page (Fixes #267)

This commit is contained in:
Emanuel Schuetze 2016-01-09 14:44:49 +01:00
parent 363c928517
commit b035ee7d7c
5 changed files with 15 additions and 18 deletions

View File

@ -38,7 +38,7 @@ Other:
for generic Django REST Framework views in OpenSlides apps.
- Removed most of the Django views and templates.
- Removed Django error pages.
- Added page for legal notes.
- Added page for legal notice.
- Refactored projector API using metaclasses now.
- Renamed SignalConnectMetaClass classmethod get_all_objects to get_all
(private API).

View File

@ -64,10 +64,10 @@ def setup_general_config(sender, **kwargs):
subgroup=ugettext_lazy('Event'))
yield ConfigVariable(
name='general_event_legal_notes',
default_value='',
name='general_event_legal_notice',
default_value=_('<a href="http://www.openslides.org">OpenSlides</a> is a free web based presentation and assembly system for visualizing and controlling agenda, motions and elections of an assembly.'),
input_type='text',
label=ugettext_lazy('Legal notes'),
label=ugettext_lazy('Legal notice'),
weight=132,
group=ugettext_lazy('General'),
subgroup=ugettext_lazy('Event'))

View File

@ -205,10 +205,10 @@ angular.module('OpenSlidesApp.core.site', [
abstract: true,
template: "<ui-view/>",
})
// version
.state('version', {
url: '/version',
controller: 'VersionCtrl',
// legal notice and version
.state('legalnotice', {
url: '/legalnotice',
controller: 'LegalNoticeCtrl',
})
//config
.state('config', {
@ -425,8 +425,8 @@ angular.module('OpenSlidesApp.core.site', [
}
])
// Version Controller
.controller('VersionCtrl', [
// Legal Notice Controller
.controller('LegalNoticeCtrl', [
'$scope',
'$http',
function ($scope, $http) {

View File

@ -143,7 +143,7 @@
<!-- footer -->
<div id="footer">
&copy; Copyright by <a href="http://www.openslides.org" target="_blank">OpenSlides</a> |
<a ui-sref="version">Version</a>
<a ui-sref="legalnotice" translate>Legal notice</a>
</div><!--end footer-->
</div>
<div class="col2" os-perms="core.can_see_projector"

View File

@ -1,16 +1,13 @@
<div class="header">
<div class="title">
<h1 translate>Legal Notes and Version</h1>
<h1 translate>Legal Notice</h1>
</div>
</div>
<div class="details">
<p class="lead" translate>Legal Notes</p>
{{ config('general_event_legal_notes') }}
</div>
<div class="details">
<p class="lead">OpenSlides {{ core_version }}
<div ng-bind-html="config('general_event_legal_notice')"></div>
<hr>
<p>OpenSlides {{ core_version }}
<div ng-show="plugins.length">
<p translate>Installed plugins:</p>
<ol>