feat: lay our own pages out as interface rather than as articles
This commit is contained in:
parent
e7a8e91334
commit
dfba1cfb16
8 changed files with 162 additions and 55 deletions
|
|
@ -30,15 +30,12 @@ Future<MewsPage> buildSubscriptionsPage(
|
|||
field: 'q',
|
||||
value: query,
|
||||
),
|
||||
ParagraphBlock([
|
||||
if (query.isNotEmpty) ...[
|
||||
MewsLink(MewsUrls.page(url, {'q': null}),
|
||||
[MewsText(strings.t('action-clear-search'))]),
|
||||
const MewsText(actionSeparator),
|
||||
],
|
||||
...linkLine([
|
||||
if (query.isNotEmpty)
|
||||
action(MewsUrls.page(url, {'q': null}),
|
||||
strings.t('action-clear-search')),
|
||||
if (tag != null && tag.isNotEmpty)
|
||||
MewsLink(MewsUrls.page(url, {'tag': null}),
|
||||
[MewsText(strings.t('subscriptions-show-all'))]),
|
||||
action(MewsUrls.page(url, {'tag': null}), strings.t('subscriptions-show-all')),
|
||||
]),
|
||||
if (tag != null && tag.isNotEmpty)
|
||||
ParagraphBlock([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue