Skip to content

Commit

Permalink
Landsgemeinde: Rename Archive
Browse files Browse the repository at this point in the history
TYPE: Feature
LINK: OGC-1990
  • Loading branch information
BreathingFlesh authored Dec 31, 2024
1 parent eb0b55a commit ee62c7a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/onegov/landsgemeinde/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_top_navigation(
yield ( # type:ignore[misc]
Bunch(id=-1, access='public', published=True),
Link(
text=_('Assemblies'),
text=_('Archive'),
url=request.class_link(AssemblyCollection)
),
()
Expand Down
4 changes: 2 additions & 2 deletions src/onegov/landsgemeinde/layouts/assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AssemblyCollectionLayout(DefaultLayout):

@cached_property
def title(self) -> str:
return _('Assemblies')
return _('Archive')

@cached_property
def og_description(self) -> str:
Expand Down Expand Up @@ -74,7 +74,7 @@ def breadcrumbs(self) -> list[Link]:
return [
Link(_('Homepage'), self.homepage_url),
Link(
_('Assemblies'),
_('Archive'),
self.request.link(self.assembly_collection())
),
Link(self.title, self.request.link(self.model))
Expand Down
12 changes: 6 additions & 6 deletions tests/onegov/landsgemeinde/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ def assert_last_modified():

client_with_es.login('[email protected]', 'hunter2')

page = client_with_es.get('/').click('Landsgemeinden')
page = client_with_es.get('/').click('Archiv')
assert 'Noch keine Landsgemeinden erfasst.' in page
assert 'Zum Liveticker' not in page

# add assembly
with freeze_time('2023-05-07 9:30'):
page = page.click('Landsgemeinde', index=1)
page = page.click('Landsgemeinde')
page.form['date'] = '2023-05-07'
page.form['state'] = 'ongoing'
page.form['overview'] = '<p>Lorem ipsum</p>'
Expand Down Expand Up @@ -167,15 +167,15 @@ def assert_last_modified():
# delete agenda item
with freeze_time('2023-05-07 9:37'):
page.click('Löschen')
page = page.click('Landsgemeinde', index=2)
page = page.click('Landsgemeinde', index=1)
assert '<p>Lorem ipsum dolor sit amet</p>' in page
assert 'A. consectetur adipiscing' not in page
assert_last_modified()

# delete landsgemeinde
with freeze_time('2023-05-07 9:38'):
page.click('Löschen')
page = page.click('Landsgemeinden', index=0)
page = page.click('Archiv', index=0)
assert 'Noch keine Landsgemeinden erfasst.' in page


Expand All @@ -189,8 +189,8 @@ def test_view_pages_cache(landsgemeinde_app):

# add assembly
client.login('[email protected]', 'hunter2')
page = client.get('/').click('Landsgemeinden')
page = page.click('Landsgemeinde', index=1)
page = client.get('/').click('Archiv')
page = page.click('Landsgemeinde')
page.form['date'] = '2023-05-07'
page.form['state'] = 'completed'
page.form['overview'] = 'Lorem'
Expand Down

0 comments on commit ee62c7a

Please sign in to comment.