[%# View a list of public mood themes. # # Authors: # import r26.1 livejournal -- original page # Jen Griffin -- TT conversion # # Copyright (c) 2008-2020 by Dreamwidth Studios, LLC. # # This program is free software; you may redistribute it and/or modify it # under the same terms as Perl itself. For a copy of the license, please # reference 'perldoc perlartistic' or 'perldoc perlgpl'. # %] [%- sections.title='.title' | ml( sitename = site.nameshort ) -%] [%- sections.head = BLOCK %] [% END %] [%- CALL dw.active_resource_group( "foundation" ) -%]

[% '.moods.intro' | ml( sitename = site.name ) %]

[% '.moods.howtochange' | ml( aopts = "href='${site.root}/customize/'" ) %]

[% form.hidden( name = "page", value = pages.current ) %] [%- # create alternate mood view selection form n = 1; FOREACH mname IN show_moods -%] [%- n = n + 1; END -%] [%- # build mood display rows i = pages.first_item; WHILE i <= pages.last_item; theme = themes.$i; i = i + 1 -%] [%- FOREACH mood IN show_moods; pic = load_image( theme.moodthemeid, mood ) -%] [%- END -%] [%- END; # WHILE -%]
[% form.select( name = "theme$n", selected = mname, items = mood_select ) %] [% form.submit( value = dw.ml( '.btn.switch' ) ) %]
[% theme.name %] [%- IF pic.keys.size -%] [% [%- END -%] [% link = dw.create_url( '/moodlist', args => { moodtheme => theme.moodthemeid } ); text = dw.ml( '.nav.viewall' ); 'Actionlink' | ml( link = "$text" ) %]

[% '.pagetext' | ml( pageon = pages.current, pagetot = pages.total_pages ) %]

[% INCLUDE components/pagination.tt current => pages.current, total_pages => pages.total_pages %]