Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/iiif-annotation-leaflet'…
Browse files Browse the repository at this point in the history
… into feature/iiif-annotation-leaflet
  • Loading branch information
ctot-nondef committed Dec 12, 2023
2 parents ba33a8a + 26389c7 commit abdf472
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions install.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ high-quality, attributed digital objects online at scale. Be aware that:
### Installation

sudo apt install iipimage-server libvips-tools
sudo a2enmod fcgid
sudo service apache2 restart

You can test http://your.server/iipsrv/iipsrv.fcgi to see if it runs.
Expand Down
1 change: 1 addition & 0 deletions install/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RUN cd /var/www/openatlas &&\
pip3 install -e ./ &&\
~/.local/bin/calmjs npm --install openatlas
RUN a2enmod iipsrv &&\
a2enmod fcgid &&\
service apache2 restart

EXPOSE 8080
Expand Down
9 changes: 7 additions & 2 deletions openatlas/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def admin_index(
'entities'],
defs=[{'className': 'dt-body-right', 'targets': 7}]),
'content': Table(['name'] + list(app.config['LANGUAGES']))}
if is_authorized('manager'):
tables['user'].header.append(_('info'))
newsletter = False
for user in User.get_all():
if user.settings['newsletter']:
Expand All @@ -83,15 +85,18 @@ def admin_index(
f'{format_number(count)}</a>'
email = user.email \
if is_authorized('manager') or user.settings['show_email'] else ''
tables['user'].rows.append([
row = [
link(user),
user.real_name,
user.group,
email,
_('yes') if user.settings['newsletter'] else '',
format_date(user.created),
format_date(user.login_last_success),
user_entities])
user_entities]
if is_authorized('editor'):
row.append(user.description)
tables['user'].rows.append(row)
for item, languages in get_content().items():
content = [_(item)]
for language in app.config['LANGUAGES']:
Expand Down
3 changes: 1 addition & 2 deletions openatlas/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,14 @@ def user_view(id_: int) -> str:
@app.route('/admin/user/entities/<int:id_>')
@required_group('readonly')
def user_entities(id_: int) -> str:
user = User.get_by_id(id_)
table = Table([
'name',
'class',
'type',
'begin',
'end',
'created'])
if user:
if user := User.get_by_id(id_):
for entity in user.get_entities():
table.rows.append([
link(entity),
Expand Down

0 comments on commit abdf472

Please sign in to comment.