forked from mirrors/treebird
Add account button
FossilOrigin-Name: 419d2452a36661ee31a63dcbecbc090b964c43898879f5b964b96560867c0740
This commit is contained in:
parent
c19ad92804
commit
6492402f96
3 changed files with 10 additions and 2 deletions
|
@ -41,6 +41,7 @@ enum l10n_string
|
|||
|
||||
/* CONFIG */
|
||||
L10N_GENERAL,
|
||||
L10N_ACCOUNT,
|
||||
L10N_JAVASCRIPT,
|
||||
L10N_CFG_QUICK_ACTIONS,
|
||||
L10N_CFG_QUICK_REPLY,
|
||||
|
@ -117,6 +118,7 @@ static const char* const L10N[][_L10N_LEN] = {
|
|||
|
||||
/* CONFIG */
|
||||
"General",
|
||||
"Account",
|
||||
"JavaScript",
|
||||
"Quick actions - Likes, Boosts, etc done in background",
|
||||
"Quick reply - Replies don't require redirects",
|
||||
|
@ -190,6 +192,7 @@ static const char* const L10N[][_L10N_LEN] = {
|
|||
|
||||
/* CONFIG */
|
||||
"General",
|
||||
"Account",
|
||||
"JavaScript",
|
||||
"Acciones rápidas - Me gusta, Impulsos, etc. se hacen en segundo plano",
|
||||
"Respuesta rápidas - Las respuestas no requieren redirección",
|
||||
|
|
|
@ -37,7 +37,8 @@
|
|||
enum config_category
|
||||
{
|
||||
CONFIG_CAT_GENERAL,
|
||||
CONFIG_CAT_APPEARANCE
|
||||
CONFIG_CAT_APPEARANCE,
|
||||
CONFIG_CAT_ACCOUNT
|
||||
};
|
||||
|
||||
static char* construct_config_sidebar(enum config_category cat, size_t* size)
|
||||
|
@ -49,7 +50,10 @@ static char* construct_config_sidebar(enum config_category cat, size_t* size)
|
|||
L10N[L10N_EN_US][L10N_GENERAL],
|
||||
CAT_TEXT(cat, CONFIG_CAT_APPEARANCE),
|
||||
config_url_prefix,
|
||||
L10N[L10N_EN_US][L10N_APPEARANCE]);
|
||||
L10N[L10N_EN_US][L10N_APPEARANCE],
|
||||
CAT_TEXT(cat, CONFIG_CAT_ACCOUNT),
|
||||
config_url_prefix,
|
||||
L10N[L10N_EN_US][L10N_ACCOUNT]);
|
||||
if (size) *size = s;
|
||||
return sidebar_html;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<ul class="sidebar-config">
|
||||
<li><a class="sidebarbtn-sub %s" href="%s/config/general">%s</a></li>
|
||||
<li><a class="sidebarbtn-sub %s" href="%s/config/appearance">%s</a></li>
|
||||
<li><a class="sidebarbtn-sub %s" href="%s/config/account">%s</a></li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue