[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [FIX][UX] Calendar: restore compact period controls and responsive list rows

"MAGENE Sem Joel \(@Jomagene\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a4056e74afd8_38675be4871218@gitlab-sidekiq-low-urgency-cpu-bound-v2-656d6f88d7-46pvx.mail>

MAGENE Sem Joel pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
adec2f2b by MAGENE Sem Joel at 2026-06-27T22:58:12+00:00
[FIX][UX] Calendar: restore compact period controls and responsive list rows
---
* [BP][FIX][UX] Calendar: restore compact period controls and responsive list rows

See merge request tikiwiki/tiki!10612

- - - - -


2 changed files:

- templates/tiki-calendar_nav.tpl
- themes/base_files/css/tiki_base.scss


Changes:

=====================================
templates/tiki-calendar_nav.tpl
=====================================
@@ -31,7 +31,7 @@
                         {if $module neq 'y'}
                             {button _ajax=$ajax href="?viewmode=week" _title=":{tr}Week{/tr}" _text="{tr}Week{/tr}" _selected_class="buttonon" _type="xs btn-primary tips" _selected="{if $viewmode == 'week'}y{else}n{/if}"}
                             {button _ajax=$ajax href="?viewmode=month" _title=":{tr}Month{/tr}" _text="{tr}Month{/tr}" _selected_class="buttonon" _type="xs btn-primary tips" _selected="{if $viewmode == 'month'}y{else}n{/if}"}
-                        {elseif empty($module_params.viewmode)}
+                        {else}
                             {button _ajax=$ajax viewmode='week' _auto_args="viewmode" _keepall='y' _title=":{tr}Week{/tr}" _text="{tr}W{/tr}" _selected_class="buttonon" _type="xs btn-primary tips" _selected="{if $viewmode == 'week'}y{else}n{/if}"}
                             {button _ajax=$ajax viewmode='month' _auto_args="viewmode" _keepall='y' _title=":{tr}Month{/tr}" _text="{tr}M{/tr}" _selected_class="buttonon" _type="xs btn-primary tips" _selected="{if $viewmode == 'month'}y{else}n{/if}"}
                         {/if}
@@ -40,6 +40,10 @@
                             {button _ajax=$ajax href="?viewmode=quarter" _title=":{tr}Quarter{/tr}" _text="{tr}Quarter{/tr}" _selected_class="buttonon" _type="xs btn-primary tips" _selected="{if $viewmode == 'quarter'}y{else}n{/if}"}
                             {button href="?viewmode=semester" _title=":{tr}Semester{/tr}" _text="{tr}Semester{/tr}" _selected_class="buttonon" _type="xs btn-primary tips" _selected="{if $viewmode == 'semester'}y{else}n{/if}"}
                             {button href="?viewmode=year" _ajax=$ajax viewmode=year _title=":{tr}Year{/tr}" _text="{tr}Year{/tr}" _selected_class="buttonon" _type="xs btn-primary tips" _selected="{if $viewmode == 'year'}y{else}n{/if}"}
+                        {else}
+                            {button _ajax=$ajax viewmode='quarter' _auto_args="viewmode" _keepall='y' _title=":{tr}Quarter{/tr}" _text="{tr}Q{/tr}" _selected_class="buttonon" _type="xs btn-primary tips" _selected="{if $viewmode == 'quarter'}y{else}n{/if}"}
+                            {button _ajax=$ajax viewmode='semester' _auto_args="viewmode" _keepall='y' _title=":{tr}Semester{/tr}" _text="{tr}S{/tr}" _selected_class="buttonon" _type="xs btn-primary tips" _selected="{if $viewmode == 'semester'}y{else}n{/if}"}
+                            {button _ajax=$ajax viewmode='year' _auto_args="viewmode" _keepall='y' _title=":{tr}Year{/tr}" _text="{tr}Y{/tr}" _selected_class="buttonon" _type="xs btn-primary tips" _selected="{if $viewmode == 'year'}y{else}n{/if}"}
                         {/if}
                         </div>
 
@@ -69,9 +73,9 @@
             {/if}
 
             {if $viewlist ne 'list' or $prefs.calendar_list_begins_focus ne 'y'}
-                {if $calendarViewMode eq 'month'}
+                {if $viewmode eq 'month'}
                     {$daystart|tiki_date_format:"%B %Y"}
-                {elseif $calendarViewMode eq 'week'}
+                {elseif $viewmode eq 'week'}
                     {* test display_field_order and use %d/%m or %m/%d *}
                     {if ($prefs.display_field_order eq 'DMY') || ($prefs.display_field_order eq 'DYM') || ($prefs.display_field_order eq 'YDM')}
                         {$daystart|tiki_date_format:"{tr}%d/%m{/tr}/%Y"} - {$dayend|tiki_date_format:"{tr}%d/%m{/tr}/%Y"}


=====================================
themes/base_files/css/tiki_base.scss
=====================================
@@ -2,6 +2,7 @@
     This Tiki Wiki CMS Groupware file contains global design
     and layout properties. */
 @import "../../../node_modules/bootstrap/scss/functions";
+@import "../../../node_modules/bootstrap/scss/mixins";
 
 @import "../../default/scss/_variables.scss";
 



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/adec2f2bf965cf81e7fc17fe68d30337572a2231

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/adec2f2bf965cf81e7fc17fe68d30337572a2231
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.