diff --git a/uwume/assets/explore/content.txt b/uwume/assets/explore/content.txt new file mode 100644 index 0000000..e69de29 diff --git a/uwume/lib/databaseMethods.py b/uwume/lib/databaseMethods.py index 61dc7fb..93c4003 100644 --- a/uwume/lib/databaseMethods.py +++ b/uwume/lib/databaseMethods.py @@ -81,6 +81,17 @@ def get_users(): return user_list_formatted +def get_users_list(partition): + users = Table('users', md, autoload=True, autoload_with=engine) + query = select([users.columns.name, users.columns.count]).order_by(users.columns.name.asc()).offset(partition*10).limit(10) + output = conn.execute(query) + user_list = output.fetchall() + user_list_formatted = [] + for u in user_list: + user_list_formatted += [(str(u[0]), str(u[1]))] + return user_list_formatted + + def get_all(): users = Table('users', md, autoload=True, autoload_with=engine) query = select([users]) diff --git a/uwume/static/css/explore/index.css b/uwume/static/css/explore/index.css new file mode 100644 index 0000000..e69de29 diff --git a/uwume/static/js/explore/index.js b/uwume/static/js/explore/index.js new file mode 100644 index 0000000..1a64ece --- /dev/null +++ b/uwume/static/js/explore/index.js @@ -0,0 +1,6 @@ + + +window.addEventListener("load", function() { + console.log("View specific JS initialized."); + // If JS is enabled, set view to update pages without refreshing +}); diff --git a/uwume/templates/explore/index.html b/uwume/templates/explore/index.html new file mode 100644 index 0000000..688fc13 --- /dev/null +++ b/uwume/templates/explore/index.html @@ -0,0 +1,33 @@ +{% extends 'index.html' %} {% block header %} +
+ {{ item }} +
+ {% endfor %} +{{ item }} diff --git a/uwume/templates/login/index.html b/uwume/templates/login/index.html index f5897c3..5109cde 100644 --- a/uwume/templates/login/index.html +++ b/uwume/templates/login/index.html @@ -10,7 +10,7 @@