it is not unlike a sidebar organizing the FAQs
parent
1986b37857
commit
7de1051448
|
@ -20,7 +20,7 @@
|
|||
<div id="main-container">
|
||||
<div class="js-main">
|
||||
<div id="js-leftcol">
|
||||
{% include "explore.html" %}
|
||||
{% include "faqmenu.html" %}
|
||||
</div>
|
||||
<div id="js-maincol-fr" class="have-right doc">
|
||||
<div class="js-maincol-inner">
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
<div class="jsmodule">
|
||||
<h3 class="jsmod-title"><span>FAQs</span></h3>
|
||||
<div class="jsmod-content">
|
||||
<ul class="menu level1">
|
||||
|
||||
<li class="first parent {% if location != 'basics' %}collapse{% endif %}">
|
||||
<a href="/faq/basics/"><span>Basics</span></a>
|
||||
<ul class="menu level2">
|
||||
<li class="first"><a href="{% url work_list 'recommended' %}"><span>How it Works</span></a></li>
|
||||
<li><a href="{% url work_list 'popular' %}"><span>Your Account</span></a></li>
|
||||
<li class="last"><a href="{% url campaign_list 'newest' %}"><span>The Company</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="parent {% if location != 'starting_campaigns' %}collapse{% endif %}">
|
||||
<a href="/faq/starting_campaigns/"><span>Starting Campaigns</span></a>
|
||||
<ul class="menu level2">
|
||||
<li class="first"><a href="{% url work_list 'recommended' %}"><span>The Basics</span></a></li>
|
||||
<li><a href="{% url work_list 'popular' %}"><span>Funding</span></a></li>
|
||||
<li><a href="{% url work_list 'popular' %}"><span>Rewards</span></a></li>
|
||||
<li><a href="{% url work_list 'popular' %}"><span>Campaign Pages</span></a></li>
|
||||
<li class="last"><a href="{% url campaign_list 'newest' %}"><span>Supporter Relationships</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="parent {% if location != 'supporting_campaigns' %}collapse{% endif %}">
|
||||
<a href="/faq/supporting_campaigns/"><span>Supporting Campaigns</span></a>
|
||||
<ul class="menu level2">
|
||||
<li class="first"><a href="{% url work_list 'recommended' %}"><span>Stuff</span></a></li>
|
||||
<li><a href="{% url work_list 'popular' %}"><span>More Stuff</span></a></li>
|
||||
<li class="last"><a href="{% url campaign_list 'newest' %}"><span>Totally Spurious Stuff</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="parent {% if location != 'unglued_ebooks' %}collapse{% endif %}">
|
||||
<a href="/faq/unglued_ebooks/"><span>Unglued Ebooks</span></a>
|
||||
<ul class="menu level2">
|
||||
<li class="first"><a href="{% url work_list 'recommended' %}"><span>DRM is lame</span></a></li>
|
||||
<li><a href="{% url work_list 'popular' %}"><span>CC is awesome</span></a></li>
|
||||
<li class="last"><a href="{% url campaign_list 'newest' %}"><span>These Links Also Spurious</span></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
|
@ -5,7 +5,7 @@ from django.views.generic import ListView, DetailView
|
|||
from django.contrib.auth.decorators import login_required
|
||||
|
||||
from regluit.core.models import Campaign
|
||||
from regluit.frontend.views import CampaignFormView, GoodreadsDisplayView, LibraryThingView, PledgeView
|
||||
from regluit.frontend.views import CampaignFormView, GoodreadsDisplayView, LibraryThingView, PledgeView, FAQView
|
||||
from regluit.frontend.views import CampaignListView, DonateView, WorkListView
|
||||
|
||||
urlpatterns = patterns(
|
||||
|
@ -23,8 +23,7 @@ urlpatterns = patterns(
|
|||
url(r"^rightsholders/claim/$", "claim", name="claim"),
|
||||
url(r"^rh_admin/$", "rh_admin", name="rh_admin"),
|
||||
url(r"^campaign_admin/$", "campaign_admin", name="campaign_admin"),
|
||||
url(r"^faq/$", TemplateView.as_view(template_name="faq.html"),
|
||||
name="faq"),
|
||||
url(r"^faq/(?P<location>\w*)/$", FAQView.as_view(), name="faq"),
|
||||
url(r"^wishlist/$", "wishlist", name="wishlist"),
|
||||
url(r"^campaigns/(?P<pk>\d+)/$",CampaignFormView.as_view(), name="campaign_by_id"),
|
||||
url(r"^campaigns/(?P<facet>\w*)$", CampaignListView.as_view(), name='campaign_list'),
|
||||
|
|
|
@ -742,6 +742,11 @@ class CampaignFormView(FormView):
|
|||
logger.info("CampaignFormView paypal: Error " + str(t.reference))
|
||||
return HttpResponse(response)
|
||||
|
||||
class FAQView(TemplateView):
|
||||
template_name = "faq.html"
|
||||
def get_context_data(self, **kwargs):
|
||||
location = self.kwargs["location"]
|
||||
return {'location': location}
|
||||
|
||||
class GoodreadsDisplayView(TemplateView):
|
||||
template_name = "goodreads_display.html"
|
||||
|
|
|
@ -195,3 +195,6 @@ dd {
|
|||
.errorlist li {
|
||||
border: solid #8dc63f 4px;
|
||||
}
|
||||
.collapse ul {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -133,3 +133,7 @@ dd {
|
|||
.errorlist li {
|
||||
border: solid @call-to-action 4px;
|
||||
}
|
||||
|
||||
.collapse ul {
|
||||
display: none;
|
||||
}
|
Loading…
Reference in New Issue