Author | +Subject | +Sent | +{% for m in user.get_profile.messages.all %} + {% if m.read %} +
{{ m.author.get_full_name }} | +{{ m.subject }} | +{{ m.sent }} | +
+
+{{ msg.subject }}
+From: {{ msg.author.get_full_name }}
+Sent: {{ msg.sent }}
{{ msg.body }}+{% endblock %} + diff --git a/templates/philosophy.html b/templates/philosophy.html new file mode 100644 index 0000000..66b9999 --- /dev/null +++ b/templates/philosophy.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} + +{% block title %}Philosophy{% endblock %} + +{% block content %} +
I decided to create Shade because of the many things I dislike about +Facebook. Mark Zuckerberg, the founder of Facebook, is in it to make +money, and therefore has an incentive to sell users' information to +advertisers. Because of his goals to monetize Facebook, many +aspects of Facebook are extremely user hostile. For example, simply +liking a page like Dr. Pepper, Taco Bell, or Walmart will force you to +receive status updates from that page/organization. I think users should +be able to show off things they like without having their dashboard flooded +with advertisements disguised as "status updates". +
++Shade will not support 3rd party applications. +
++Shade will never censor anything, and there will be no parental controls. +If kids want to come here and post rude comments about each other, I really +don't care. If parents take offense to that, they can go bitch at +someone else because I'm not going to pay attention to them; maybe they +should take the initiative to monitor their kids themselves. There will be +privacy controls however. +
++Thanks +
+{% endblock %} + diff --git a/templates/profile/album.html b/templates/profile/album.html new file mode 100644 index 0000000..6c26c6d --- /dev/null +++ b/templates/profile/album.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} + +{% block title %}{{ album.name }}{% endblock %} + +{% block content %} +{{ album.name }}
+{% if album in user.get_profile.albums.all %} + +{% endif %} + ++{% for p in album.pictures.all %} + +{% empty %} + Album empty. +{% endfor %} +
+{% endblock %} + diff --git a/templates/profile/album_new.html b/templates/profile/album_new.html new file mode 100644 index 0000000..acb313b --- /dev/null +++ b/templates/profile/album_new.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block title %}{{ user.first_name }}'s Albums{% endblock %} + +{% block content %} +New Album
+ +{% endblock %} + diff --git a/templates/profile/albums.html b/templates/profile/albums.html new file mode 100644 index 0000000..fcf9449 --- /dev/null +++ b/templates/profile/albums.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block title %}{{ other_user.first_name }}'s Albums{% endblock %} + +{% block content %} +Albums
+{% if other_user == user %} + +{% endif %} +{% for a in other_user.get_profile.albums.all %} + +{% empty %} +No albums
+{% endfor %} +{% endblock %} + diff --git a/templates/profile/img_upload.html b/templates/profile/img_upload.html new file mode 100644 index 0000000..0dd4aa7 --- /dev/null +++ b/templates/profile/img_upload.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block title %}Upload Image{% endblock %} + +{% block content %} +{{ album.name }}
+ +{% endblock %} + diff --git a/templates/profile/profile.html b/templates/profile/profile.html new file mode 100644 index 0000000..476caad --- /dev/null +++ b/templates/profile/profile.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} + +{% block title %}{{ other_user.first_name }} {{ other_user.last_name }}{% endblock %} + +{% block content %} ++{% if invited %} +Awaiting invite confirmation +{% else %} +{% if user and user != other_user and other_user not in user.get_profile.friends.all %} + Add {{ user.first_name }} to friends +{% endif %}{% endif %} +
+ +{% if other_user.get_profile.profile_picture %} + +{% endif %} + +{{ user.first_name }}'s Pictures
+
+ Gender: {{ other_user.get_profile.gender }}
+ Hometown: {{ other_user.get_profile.hometown }}, {{ other_user.get_profile.home_state }} {{ other_user.get_profile.home_country }}
+ Current Location: {{ other_user.get_profile.current_town }}, {{ other_user.get_profile.current_state }} {{ other_user.get_profile.current_country }}
+
{{ other_user.user.get_profile.bio }}
+
+ {{ c.post }}
+ {{ c.author.get_full_name }} on {{ c.sent }}
+
+
{{ img.caption }}
+{% endblock %} + diff --git a/templates/register.html b/templates/register.html new file mode 100644 index 0000000..e93ad5f --- /dev/null +++ b/templates/register.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block title %}Register{% endblock %} + +{% block content %} +Register + +{% endblock %} + diff --git a/templates/registration/logged_out.html b/templates/registration/logged_out.html new file mode 100644 index 0000000..5cb6467 --- /dev/null +++ b/templates/registration/logged_out.html @@ -0,0 +1,2 @@ +{% extends "base.html" %} + diff --git a/templates/request_form.html b/templates/request_form.html new file mode 100644 index 0000000..82acfc4 --- /dev/null +++ b/templates/request_form.html @@ -0,0 +1,5 @@ + + + {{ html|safe }} + + diff --git a/templates/search.html b/templates/search.html new file mode 100644 index 0000000..d9075e0 --- /dev/null +++ b/templates/search.html @@ -0,0 +1,21 @@ +{% extends "base.html" %} + +{% block title %}Search{% endblock %} + +{% block content %} +Search
+Enter either name or email
+ +{% if results %} +Results
+ {% for r in results %} + + {% endfor %} +{% endif %} +{% endblock %} + diff --git a/templates/settings.html b/templates/settings.html new file mode 100644 index 0000000..cfc9827 --- /dev/null +++ b/templates/settings.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block title %}My Dashboard{% endblock %} + +{% block content %} +Settings +{% if saved %} +Settings Saved
+{% endif %} + +{% endblock %} + diff --git a/urls.py b/urls.py new file mode 100644 index 0000000..e2647be --- /dev/null +++ b/urls.py @@ -0,0 +1,44 @@ +from django.conf.urls.defaults import * +from django.conf import settings +import socialauth + +# Uncomment the next two lines to enable the admin: +# from django.contrib import admin +# admin.autodiscover() + +urlpatterns = patterns('', + # Example: + (r'^$', 'shade.social.views.index'), + (r'^dashboard/$', 'shade.social.views.dashboard'), + (r'^settings/$', 'shade.social.views.settings'), + (r'^profile/(?P