add: better mobile ui for timeline pages
add: rename button classes (quaternary->lowered, tertiary->raised)
This commit is contained in:
parent
7bfb113b1f
commit
0dede99682
42 changed files with 272 additions and 177 deletions
|
@ -16,7 +16,7 @@
|
|||
(text "{{ text \"general:link.ip_bans\" }}")))
|
||||
(button
|
||||
("onclick" "prompt_ban_ip()")
|
||||
("class" "quaternary small")
|
||||
("class" "lowered small")
|
||||
(text "{{ icon \"plus\" }}")
|
||||
(span
|
||||
(text "{{ text \"communities:action.create\" }}"))))
|
||||
|
@ -44,7 +44,7 @@
|
|||
("class" "card w-full flex flex-wrap gap-2")
|
||||
(button
|
||||
("onclick" "remove_ipban('{{ item.ip }}')")
|
||||
("class" "red quaternary")
|
||||
("class" "red lowered")
|
||||
(text "{{ icon \"trash\" }}")
|
||||
(span
|
||||
(text "{{ text \"general:action.delete\" }}"))))))
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
(span
|
||||
(text "{{ text \"mod_panel:label.manage_profile\" }}")))
|
||||
(div
|
||||
("class" "card tertiary")
|
||||
("class" "card lowered")
|
||||
(div
|
||||
("class" "flex flex-col gap-2")
|
||||
("id" "mod_options")
|
||||
|
@ -22,19 +22,19 @@
|
|||
("ui_ident" "actions")
|
||||
(a
|
||||
("href" "/settings?username={{ profile.username }}")
|
||||
("class" "button quaternary")
|
||||
("class" "button lowered")
|
||||
(text "{{ icon \"settings\" }}")
|
||||
(span
|
||||
(text "View settings")))
|
||||
(a
|
||||
("href" "/mod_panel/profile/{{ profile.id }}/warnings")
|
||||
("class" "button quaternary")
|
||||
("class" "button lowered")
|
||||
(text "{{ icon \"shield-alert\" }}")
|
||||
(span
|
||||
(text "View warnings")))
|
||||
(a
|
||||
("href" "/notifs?id={{ profile.id }}")
|
||||
("class" "button quaternary")
|
||||
("class" "button lowered")
|
||||
(text "{{ icon \"bell\" }}")
|
||||
(span
|
||||
(text "Notifications"))
|
||||
|
@ -43,7 +43,7 @@
|
|||
(text "{{ profile.notification_count }}")))
|
||||
(a
|
||||
("href" "/requests?id={{ profile.id }}")
|
||||
("class" "button quaternary")
|
||||
("class" "button lowered")
|
||||
(text "{{ icon \"inbox\" }}")
|
||||
(span
|
||||
(text "Requests"))
|
||||
|
@ -51,19 +51,19 @@
|
|||
("class" "notification")
|
||||
(text "{{ profile.request_count }}")))
|
||||
(button
|
||||
("class" "red quaternary")
|
||||
("class" "red lowered")
|
||||
("onclick" "delete_account(event)")
|
||||
(text "{{ icon \"trash\" }}")
|
||||
(span
|
||||
(text "{{ text \"settings:label.delete_account\" }}")))
|
||||
(text "{% if profile.permissions != 131073 -%}")
|
||||
(button
|
||||
("class" "red quaternary")
|
||||
("class" "red lowered")
|
||||
("onclick" "update_user_role(131073)")
|
||||
(text "Ban"))
|
||||
(text "{% else %}")
|
||||
(button
|
||||
("class" "quaternary")
|
||||
("class" "lowered")
|
||||
("onclick" "update_user_role(1)")
|
||||
(text "Unban"))
|
||||
(text "{%- endif %}")))
|
||||
|
@ -198,7 +198,7 @@
|
|||
(span
|
||||
(text "{{ text \"mod_panel:label.associations\" }}"))))
|
||||
(div
|
||||
("class" "card tertiary flex flex-wrap gap-2")
|
||||
("class" "card lowered flex flex-wrap gap-2")
|
||||
(text "{% for user in associations -%}")
|
||||
(text "{{ components::user_plate(user=user, show_menu=false) }}")
|
||||
(text "{%- endfor %}")))
|
||||
|
@ -212,13 +212,13 @@
|
|||
(span
|
||||
(text "{{ text \"mod_panel:label.permissions_level_builder\" }}")))
|
||||
(button
|
||||
("class" "small quaternary")
|
||||
("class" "small lowered")
|
||||
("onclick" "update_user_role(Number.parseInt(document.getElementById('role').value))")
|
||||
(text "{{ icon \"check\" }}")
|
||||
(span
|
||||
(text "{{ text \"general:action.save\" }}"))))
|
||||
(div
|
||||
("class" "card tertiary flex flex-col gap-2")
|
||||
("class" "card lowered flex flex-col gap-2")
|
||||
("id" "permission_builder")))
|
||||
(script
|
||||
(text "setTimeout(() => {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
(text "{{ text \"mod_panel:label.open_reported_content\" }}")))
|
||||
(button
|
||||
("onclick" "remove_report('{{ item.id }}')")
|
||||
("class" "red quaternary")
|
||||
("class" "red lowered")
|
||||
(text "{{ icon \"trash\" }}")
|
||||
(span
|
||||
(text "{{ text \"general:action.delete\" }}"))))))
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
(text "{{ text \"mod_panel:label.create_warning\" }}")))
|
||||
(a
|
||||
("href" "/mod_panel/profile/{{ profile.id }}")
|
||||
("class" "button quaternary small red")
|
||||
("class" "button lowered small red")
|
||||
(text "{{ icon \"x\" }}")
|
||||
(span
|
||||
(text "{{ text \"dialog:action.cancel\" }}"))))
|
||||
|
@ -66,7 +66,7 @@
|
|||
("class" "fade date")
|
||||
(text "{{ item.created }}")))
|
||||
(button
|
||||
("class" "small quaternary red")
|
||||
("class" "small lowered red")
|
||||
("onclick" "remove_warning('{{ item.id }}')")
|
||||
(text "{{ icon \"trash\" }}")
|
||||
(span
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue