diff --git a/get_together/static/css/get_together.css b/get_together/static/css/get_together.css index 2c700c7..9f96ff2 100644 --- a/get_together/static/css/get_together.css +++ b/get_together/static/css/get_together.css @@ -41,3 +41,39 @@ form { height: 16px; } +.btn-googleplus { + color: #FFFFFF; + background-color: #DB4437; + border-color: #DB4437; +} +.btn-googleplus:hover:active { + color: #FFFFFF; +} + +.btn-facebook { + color: #FFFFFF; + background-color: #3B5998; + border-color: #3B5998; +} +.btn-facebook:hover, .btn-facebook:active { + color: #FFFFFF; +} + +.btn-twitter { + color: #FFFFFF; + background-color: #1DA1F2; + border-color: #1DA1F2; +} +.btn-twitter:hover, .btn-twitter:active { + color: #FFFFFF; +} + +.btn-github { + color: #FFFFFF; + background-color: #24292e; + border-color: #24292e; +} +.btn-github:hover, .btn-github:active { + color: #FFFFFF; +} + diff --git a/get_together/templates/get_together/base.html b/get_together/templates/get_together/base.html index 84c7f82..1f52352 100644 --- a/get_together/templates/get_together/base.html +++ b/get_together/templates/get_together/base.html @@ -30,6 +30,7 @@ + {%block styles %}{% endblock %} +{% if settings.SOCIAL_AUTH_FACEBOOK_KEY %} + +{% endif %} +{% if settings.SOCIAL_AUTH_TWITTER_KEY %} + +{% endif %} {% endblock %} {% block content %} @@ -35,15 +85,27 @@

{{ event.name }} - {% if can_edit_event %} - Edit Event - {% endif %} - {% if not is_attending %} - Attend - {% endif %} - Share

Hosted by {{ team.name }}

+ {% if can_edit_event %} + + {% endif %} + {% if settings.SOCIAL_AUTH_TWITTER_KEY %} + Tweet + {% endif %} + {% if settings.SOCIAL_AUTH_FACEBOOK_KEY %} + Share + {% endif %} + {% if not is_attending %} + Attend + {% endif %}

{{ event.summary|markdown }}

@@ -83,6 +145,7 @@ Website:{{ event.web_url }} {% endif %} +
diff --git a/get_together/templates/get_together/orgs/share_common_event.html b/get_together/templates/get_together/orgs/share_common_event.html deleted file mode 100644 index c274e79..0000000 --- a/get_together/templates/get_together/orgs/share_common_event.html +++ /dev/null @@ -1,84 +0,0 @@ -{% extends "get_together/base.html" %} -{% load markup static %} - -{% block add_to_totle %} | {{event.name}}{% endblock %} - -{% block meta %} - - - - - - -{% endblock %} - -{% block content %} -{% if settings.SOCIAL_AUTH_FACEBOOK_KEY %} - -{% endif %} -{% if settings.SOCIAL_AUTH_TWITTER_KEY %} - -{% endif %} - -

Announce your Get Together

-
-
-
- {% if settings.SOCIAL_AUTH_FACEBOOK_KEY %}Facebook{% endif %} - {% if settings.SOCIAL_AUTH_TWITTER_KEY %} - - Twitter - {% endif %} -
- -
-
-{% endblock %} diff --git a/get_together/templates/get_together/orgs/show_common_event.html b/get_together/templates/get_together/orgs/show_common_event.html index 22149fa..3cd9aec 100644 --- a/get_together/templates/get_together/orgs/show_common_event.html +++ b/get_together/templates/get_together/orgs/show_common_event.html @@ -26,7 +26,56 @@ border-top: none; } -{% endblock %} +{% if settings.SOCIAL_AUTH_FACEBOOK_KEY %} + +{% endif %} +{% if settings.SOCIAL_AUTH_TWITTER_KEY %} + +{% endif %}{% endblock %} {% block content %}
@@ -34,9 +83,14 @@

{{ common_event.name }} {% if can_edit_event %} - Edit Event + Edit + {% endif %} + {% if settings.SOCIAL_AUTH_TWITTER_KEY %} + Tweet + {% endif %} + {% if settings.SOCIAL_AUTH_FACEBOOK_KEY %} + Share {% endif %} - Share

Organized by {{ common_event.organization.name }}


{{ common_event.summary|markdown }}

diff --git a/get_together/templates/get_together/users/login.html b/get_together/templates/get_together/users/login.html index 780c683..6372125 100644 --- a/get_together/templates/get_together/users/login.html +++ b/get_together/templates/get_together/users/login.html @@ -8,10 +8,10 @@ Facebook

Twitter    --> -{% if settings.SOCIAL_AUTH_GOOGLE_OAUTH2_KEY %}Google{% endif %} -{% if settings.SOCIAL_AUTH_FACEBOOK_KEY %}Faceboook{% endif %} -{% if settings.SOCIAL_AUTH_TWITTER_KEY %}Twitter{% endif %} -{% if settings.SOCIAL_AUTH_GITHUB_KEY %}GitHub{% endif %} +{% if settings.SOCIAL_AUTH_GOOGLE_OAUTH2_KEY %} Google{% endif %} +{% if settings.SOCIAL_AUTH_FACEBOOK_KEY %} Faceboook{% endif %} +{% if settings.SOCIAL_AUTH_TWITTER_KEY %} Twitter{% endif %} +{% if settings.SOCIAL_AUTH_GITHUB_KEY %} GitHub{% endif %} {% if settings.DEBUG %}Local{% endif %}
diff --git a/get_together/urls.py b/get_together/urls.py index 452a811..1766586 100644 --- a/get_together/urls.py +++ b/get_together/urls.py @@ -68,7 +68,6 @@ urlpatterns = [ path('events//+attend/', event_views.attend_event, name='attend-event'), path('events//+delete/', views.delete_event, name='delete-event'), path('events//+add_place/', views.add_place_to_event, name='add-place'), - path('events//+share/', views.share_event, name='share-event'), path('events//+comment/', event_views.comment_event, name='comment-event'), path('events//+photo/', views.add_event_photo, name='add-event-photo'), path('events///', views.show_event, name='show-event'), @@ -79,7 +78,6 @@ urlpatterns = [ path('org//', views.show_org, name='show-org'), path('org//+create-event/', views.create_common_event, name='create-common-event'), - path('common//+share/', views.share_common_event, name='share-common-event'), path('common//+create-event/', views.create_common_event_team_select, name='create-common-event-team-select'), path('common///', views.show_common_event, name='show-common-event'),