diff --git a/public/assets/icons/gd/creator_points.png b/public/assets/icons/gd/creator_points.png new file mode 100644 index 0000000..6e74b17 Binary files /dev/null and b/public/assets/icons/gd/creator_points.png differ diff --git a/public/assets/icons/gd/silvercoin.png b/public/assets/icons/gd/silver_coin.png similarity index 100% rename from public/assets/icons/gd/silvercoin.png rename to public/assets/icons/gd/silver_coin.png diff --git a/readme.md b/readme.md index 9d95431..a041997 100644 --- a/readme.md +++ b/readme.md @@ -42,4 +42,4 @@ i've run out of ideas. - authentication caching - use log instead of println - make a proper rank system (reuploading, uploading music, rating, etc.) -- user icons in the account management + settings (gdicon.oat.zone? selfhost?) \ No newline at end of file +- user icons in the account management + settings (gdicon.oat.zone? selfhost?) ideally we find a legal way to do this (i cant distribute the plist+asset files directly) but doing this illegally is always an option \ No newline at end of file diff --git a/src/template_endpoints/account_management.rs b/src/template_endpoints/account_management.rs index 31a1ffe..ff33fde 100644 --- a/src/template_endpoints/account_management.rs +++ b/src/template_endpoints/account_management.rs @@ -15,7 +15,7 @@ pub fn account_management(cookies: &CookieJar<'_>) -> Result let logged_in = crate::helpers::templates::authenticate(cookies); match logged_in { - Ok((username_val, account_id_val, user_id_val)) => { + Ok((username_val, _account_id_val, user_id_val)) => { use crate::schema::users::dsl::*; use crate::models::User; @@ -30,7 +30,8 @@ pub fn account_management(cookies: &CookieJar<'_>) -> Result diamonds: result.diamonds, coins: result.coins, user_coins: result.user_coins, - demons: result.demons + demons: result.demons, + creator_points: result.creator_points, })); }, Err(_) => { diff --git a/templates/account_management.html.hbs b/templates/account_management.html.hbs index e2709ed..22ad509 100644 --- a/templates/account_management.html.hbs +++ b/templates/account_management.html.hbs @@ -23,7 +23,12 @@ hai, {{ username }}!
- {{ stars }} {{ diamonds }} {{ coins }} {{ user_coins }} {{ demons }} + {{ stars }} + {{ diamonds }} + {{ coins }} + {{ user_coins }} + {{ demons }} + {{#unless (eq creator_points 0)}} {{ creator_points }} {{/unless}}