[%# manage/index.tt Authors: Jen Griffin Copyright (c) 2017 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 -%] [%- CALL dw.active_resource_group( "foundation" ) -%] [%- sections.head = BLOCK %] [% END %]
[% authas_html %]
[% iscomm = u.is_community ? '.comm' : '' %]

[% '.youraccount.header' _ iscomm | ml %]

[%- infoitems = [ { href = dw.create_url( '/manage/profile/', keep_args => [ 'authas' ] ) title = dw.ml( '.information.profile.about' ) text = dw.ml( '/manage/profile/index.bml.title' ) }, { href = dw.create_url( '/manage/icons', keep_args => [ 'authas' ] ) title = dw.ml( '.userpics.edit.about' ) text = dw.ml( '/edit/icons.tt.title' ) }, { href = dw.create_url( '/manage/comments/', keep_args => [ 'authas' ] ) title = dw.ml( '.information.comments.about' ) text = dw.ml( '.information.comments' ) }, { href = dw.create_url( '/manage/settings/', keep_args => [ 'authas' ] ) title = dw.ml( '.information.settings.about' ) text = dw.ml( '/manage/settings/index.bml.title.anon' ) } ]; IF u.email_raw; infoitems.push( { href = dw.create_url( '/changeemail', keep_args => [ 'authas' ] ) title = dw.ml( '.information.changeemail.about' ) text = dw.ml( '.information.changeemail' ) } ); END; IF u.is_personal; infoitems.push( { href = dw.create_url( '/changepassword' ) title = dw.ml( '.information.changepass.about' ) text = dw.ml( '.information.changepass' ) }, { href = dw.create_url( '/manage/emailpost' ) title = dw.ml( '.information.mobilepost.about' ) text = dw.ml( '.information.mobilepost' ) } ); IF remote.can_use_esn; infoitems.push( { href = dw.create_url( '/manage/settings/?cat=notifications' ) title = dw.ml( '.manage.notifications.about' ) text = dw.ml( '.manage.notifications' ) } ); END; infoitems.push( { href = dw.create_url( '/manage/logins' ) title = dw.ml( '.manage.logins' ) text = dw.ml( '.manage.logins' ) } ); END; delstatus = u.is_deleted ? 'undelete' : 'delete'; infoitems.push( { href = dw.create_url( '/accountstatus', keep_args => [ 'authas' ] ) title = dw.ml( '.information.status.about' ) text = dw.ml( '.information.status.' _ delstatus ) } ); INCLUDE linklist header=dw.ml( '.settings_pref' ) about=dw.ml( '.information' _ iscomm ) items=infoitems -%] [%- styleitems = [ { href = dw.create_url( '/customize/', keep_args => [ 'authas' ] ) title = dw.ml( '.customization.customize.about' ) text = dw.ml( '.customization.customize' ) } ]; IF use_s2; styleitems.push( { href = dw.create_url( '/customize/advanced/', keep_args => [ 'authas' ] ) title = dw.ml( '.customization.advanced.about' ) text = dw.ml( '.customization.advanced' ) }, { href = dw.create_url( '/customize/options', keep_args => [ 'authas' ], args => { group => 'linkslist' } ) title = dw.ml( '.customization.links.about' ) text = dw.ml( '.customization.links' ) } ); END; styleitems.push( { href = dw.create_url( '/customize/options', keep_args => [ 'authas' ], args => { group => 'display' } ) title = dw.ml( '.customization.moodtheme.set' ) text = dw.ml( '.customization.moodtheme.set.header' ) } ); IF u.can_create_moodthemes; styleitems.push( { href = dw.create_url( '/manage/moodthemes', keep_args => [ 'authas' ] ) title = dw.ml( '.customization.moodtheme.editor' ) text = dw.ml( '.customization.moodtheme.editor.header' ) } ); END; styleitems.push( { href = dw.create_url( '/customize/options', keep_args => [ 'authas' ], args => { group => 'display' } ) title = dw.ml( '.customization.navstrip' ) text = dw.ml( '.customization.navstrip' ) } ); INCLUDE linklist header=dw.ml( '.customization.header' ) about=dw.ml( '.customization' _ iscomm ) items=styleitems -%]
[%- entryitems = [ { href = dw.create_url( '/tools/memories', keep_args => [ 'authas' ] ) title = dw.ml( '.entries.memories.about' ) text = dw.ml( '/tools/memories.bml.title.memorable' ) } ]; UNLESS u.is_identity; entryitems.unshift( { href = dw.create_url( '/editjournal', args => { usejournal => u.user } ) title = dw.ml( '.entries.edit.about' ) text = dw.ml( '/editjournal.bml.title' ) } ); END; IF use_tags && ! u.is_identity; entryitems.push( { href = dw.create_url( '/manage/tags', keep_args => [ 'authas' ] ) title = dw.ml( '.entries.tags.about' ) text = dw.ml( '/manage/tags.bml.title2' ) } ); END; IF u.is_personal; entryitems.push( { href = dw.create_url( '/file/edit' ) title = dw.ml( '.entries.media.about' ) text = dw.ml( '.entries.media' ) } ); END; INCLUDE linklist header=dw.ml( '.entries.header' ) about=dw.ml( '.entries' _ iscomm ) items=entryitems -%] [%- circleitems = [ { href = dw.create_url( '/manage/circle/editfilters', keep_args => [ 'authas' ] ) title = dw.ml( '.friends.groups.about' ) text = dw.ml( '/manage/circle/editfilters.bml.title2' ) } ]; UNLESS u.is_community; circleitems.unshift( { href = dw.create_url( '/manage/circle/edit' ) title = dw.ml( '.circle.edit.about' ) text = dw.ml( '/manage/circle/edit.bml.title2' ) } ); END; UNLESS u.is_community; circleitems.push( { href = dw.create_url( '/manage/circle/filter' ) title = dw.ml( '.circle.filter.about' ) text = dw.ml( '.circle.filter' ) } ); END; IF use_invites && remote.is_personal; circleitems.push( { href = dw.create_url( '/invite' ) title = dw.ml( '.invites.manage.about' ) text = dw.ml( '.invites.manage' ) } ); END; INCLUDE linklist header=dw.ml( '.circle.header' ) about=dw.ml( '.circle' ) items=circleitems -%] [%- commitems = [ { href = dw.create_url( '/communities/list' ) title = dw.ml( '.communities.manage.about' ) text = dw.ml( '/communities/list.tt.title' ) }, { href = dw.create_url( '/manage/invites' ) title = dw.ml( '.communities.invites.about ' ) text = dw.ml( '/manage/invites.tt.title' ) } ]; UNLESS remote.is_identity; commitems.unshift( { href = dw.create_url( '/communities/new' ) title = dw.ml( '.communities.create.about' ) text = dw.ml( '/communities/new.tt.title' ) } ); END; INCLUDE linklist header=dw.ml( '.communities.header' ) about=dw.ml( '.communities' ) items=commitems -%]
[%- BLOCK linklist header='' about='' -%] [%- IF items.size -%]

[% header %]

[%- END -%] [%- END -%]