diff --git a/myriad/manage.py b/myriad/manage.py index 4064c76..9da4ddc 100644 --- a/myriad/manage.py +++ b/myriad/manage.py @@ -94,6 +94,18 @@ def edit(mid): edit_location = "page_settings" + if "section_titles" in request.form: + groups_title = request.form["groups_title"] + blog_title = request.form["blog_title"] + icons_title = request.form["icons_title"] + blinkies_title = request.form["blinkies_title"] + stamps_title = request.form["stamps_title"] + + db.execute("UPDATE member SET groups_title=(?), blog_title=(?), icons_title=(?), blinkies_title=(?), stamps_title=(?) WHERE id=(?)",(groups_title, blog_title, icons_title, blinkies_title, stamps_title, mid)) + db.commit() + + edit_location = "page_settings" + if "file" in request.files: # here we are just saving the uploaded file to the icons folder. # we're not going hard on security because we expect there to only be 1 admin diff --git a/myriad/static/style.css b/myriad/static/style.css index fd17ac0..2aa96a5 100644 --- a/myriad/static/style.css +++ b/myriad/static/style.css @@ -213,7 +213,10 @@ form textarea{ max-height:300px; overflow-y:scroll; } - +.image-sections{ + margin-top:20px; + margin-bottom:20px; +} #mobile-nav{ diff --git a/myriad/templates/manage/edit.html b/myriad/templates/manage/edit.html index 345449c..fda9bdc 100644 --- a/myriad/templates/manage/edit.html +++ b/myriad/templates/manage/edit.html @@ -34,8 +34,8 @@
Public Page Settings
+

Select which sections to show on this member's public page

-

Select which sections to show on this member's public page


@@ -49,6 +49,23 @@
+
+ +

Customize section titles. Leave blank to hide the heading bar for that section altogether.

+
+ +
+ +
+ +
+ +
+ +
+ +
+ {% if unjoined_groups or joined_groups %}
Manage groups
diff --git a/myriad/templates/page.html b/myriad/templates/page.html index c887ac1..bb5508e 100644 --- a/myriad/templates/page.html +++ b/myriad/templates/page.html @@ -31,7 +31,7 @@ {% if blog|length > 0 %} {% if not g.user and not blog_public_show %} {% else %} -
{{member[3]}}'s blog
+ {% if member[16] %}
{{ member[16] }}
{% endif %} {% endif %}
{% for post in blog %} @@ -52,7 +52,7 @@ {% endif %}