From 6d79fe2df8e02a3bb97235b1022491b8bc4bf272 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Tue, 13 Aug 2013 14:20:46 -0400 Subject: [PATCH] Un-pro-ing things. --- accounts/templates/account.html | 5 +- accounts/views.py | 3 - .../templates/blogs/themes/default/base.html | 6 +- blogs/templates/blogs/themes/default/rss.xml | 15 ++-- blogs/views.py | 17 ++--- media/js/snipt-all.min.js | 5 +- media/js/src/modules/snipt.js | 69 +++++++++---------- snipts/api.py | 9 +-- snipts/models.py | 4 +- .../snipts/snipt-edit-js-template.html | 60 ++++++++-------- .../templates/snipts/snipt-js-template.html | 14 ++-- snipts/templates/snipts/snipt-list.html | 8 +-- snipts/views.py | 2 +- templates/base.html | 22 +++--- templates/pro.html | 27 ++------ templates/profile.html | 8 +-- templates/search/search.html | 8 +-- 17 files changed, 112 insertions(+), 170 deletions(-) diff --git a/accounts/templates/account.html b/accounts/templates/account.html index 9194e4a..dd82760 100644 --- a/accounts/templates/account.html +++ b/accounts/templates/account.html @@ -20,11 +20,10 @@
  • Change password
  • - -
  • +
  • Blogging
  • -
  • +
  • Editor
  • diff --git a/accounts/views.py b/accounts/views.py index a75415c..f4ba56d 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -12,9 +12,6 @@ def account(request): @render_to('stats.html') def stats(request): - if not request.user.profile.is_pro: - return HttpResponseRedirect('/pro/') - snipts = Snipt.objects.filter(user=request.user).order_by('-views') return { diff --git a/blogs/templates/blogs/themes/default/base.html b/blogs/templates/blogs/themes/default/base.html index 24b8420..1f49c49 100644 --- a/blogs/templates/blogs/themes/default/base.html +++ b/blogs/templates/blogs/themes/default/base.html @@ -19,13 +19,13 @@ {% block js %} {{ block.super }} window.blog_post = true; - {% if blog_user.profile.is_pro and blog_user.profile.gittip_username %} + {% if blog_user.profile.gittip_username %} window.gittip_username = '{{ blog_user.profile.gittip_username }}'; {% endif %} {% endblock %} {% block css %} - {% if blog_user.profile.is_pro and custom_css %} + {% if custom_css %} @@ -68,7 +68,7 @@ {{ sidebar.stylized|safe }} {% endif %} - {% if blog_user.profile.is_pro and blog_user.profile.google_ad_client %} + {% if blog_user.profile.google_ad_client %} - <% if (window.user_is_pro) { %> -
    -

    Pro settings change defaults

    -

    F11 or Cmd+Enter toggles fullscreen mode

    - - - - -
    - <% } %> +
    +

    Editor settings change defaults

    +

    F11 or Cmd+Enter toggles fullscreen mode

    + + + + +
    diff --git a/snipts/templates/snipts/snipt-js-template.html b/snipts/templates/snipts/snipt-js-template.html index 731e11a..6095e10 100644 --- a/snipts/templates/snipts/snipt-js-template.html +++ b/snipts/templates/snipts/snipt-js-template.html @@ -60,14 +60,12 @@ <% } %> - <% if (snipt.user.profile.is_pro) { %> -
    -
      -
    • <%= snipt.views %> views
    • -
    • <%= snipt.favs %> favs
    • -
    -
    - <% } %> +
    +
      +
    • <%= snipt.views %> views
    • +
    • <%= snipt.favs %> favs
    • +
    +