diff options
| author | Appleman1234 <applemansigloo@gmail.com> | 2021-07-06 19:36:48 +1000 |
|---|---|---|
| committer | Appleman1234 <applemansigloo@gmail.com> | 2021-07-06 19:36:48 +1000 |
| commit | 3a5a57bf64dd2811da912ff4db16fbc2db7284db (patch) | |
| tree | d758f1205e9fb02e9d5d111e91b5f971cf156180 /templates | |
| parent | c33b88da92b6534ddda8b6680f13306321cc6a05 (diff) | |
Update catalog to rebuild on most rebuild causing events, as well as have subject being link to post
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/themes/catalog/catalog.html | 3 | ||||
| -rw-r--r-- | templates/themes/catalog/theme.php | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html index a932278d..b5f2e832 100644 --- a/templates/themes/catalog/catalog.html +++ b/templates/themes/catalog/catalog.html @@ -68,9 +68,10 @@ <strong>R: {{ post.reply_count }} / I: {{ post.image_count }}{% if post.sticky %} (sticky){% endif %}{% if post.locked %} <span class="fa fa-lock"> </span>{% endif %}</strong> {% if post.subject %} <p class="intro"> + <a href="{{post.link}}"> <span class="subject"> {{ post.subject|e }} - </span> + </span></a> </p> {% else %} <br /> diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 81148882..bc312fc0 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -27,7 +27,7 @@ } } } elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') - || $action == 'sticky' || ($action == 'lock' && in_array($board, $boards))) { + || $action == 'sticky' || ($action == 'lock' && in_array($board, $boards))) { $b = new Catalog($settings); $action = generation_strategy("sb_catalog", array($board)); @@ -37,7 +37,8 @@ } elseif ($action == 'rebuild') { $b->build($settings, $board); - } + } + $b->build($settings, $board); } // FIXME: Check that Ukko is actually enabled |
