Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:virtuallight/DQA

  • Loading branch information...
commit f4b84a76291a0cc368415261362e6fadaaecfa79 2 parents 62ad572 + e2ee052
Antonella authored
View
3  smartlinky/apps/site/urls.py
@@ -5,9 +5,8 @@
urlpatterns = patterns('apps.site.views',
url(r'^about$', 'about', name='site_about'),
url(r'^search$', 'search', name='site_search'),
+ url(r'^example$', direct_to_template, {'template': 'site/example.html'}, name='site_example'),
url(r'^$', 'index', name='site_index'),
- # TODO: create an example site with docs and Smartlinky functionality embedded
- url(r'^$', 'index', name='site_example'),
)
View
2  smartlinky/apps/site/views.py
@@ -13,7 +13,7 @@ def index(request):
"""Main view of the site that also performs link feed."""
ctx = {}
- recent_links = Link.objects.all().order_by('created_at')[:10]
+ recent_links = Link.objects.all().order_by('created_at')[:4]
ctx['feeds'] = recent_links
return render_to_response('site/index.html', ctx, context_instance=RequestContext(request))
View
11 smartlinky/media/css/style.css
@@ -247,3 +247,14 @@ footer nav ul li a:active{
#main .about a:hover{
opacity: 0.6;
}
+#documentation h1 {
+ color: #000;
+}
+#documentation {
+ background: #fff;
+ padding: 32px;
+ font-size: 130%;
+}
+.section {
+ padding: 12px 0;
+}
View
49 smartlinky/templates/site/example.html
@@ -0,0 +1,49 @@
+{% extends 'base.html' %}
+{% block head_extra %}
+ <script type="text/javascript" src="{{ STATIC_URL }}plugin.js"></script>
+{% endblock head_extra %}
+{% block main %}
+<div id="documentation">
+ <h1>Example documentation</h1>
+
+ <div class="section" id="section1">
+ <h2>Documentation section 1</h2>
+ Mauris ipsum. <b>Aenean quam</b>. Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh. Quisque volutpat condimentum velit.
+ </div>
+ <div class="section" id="section2">
+ <h2>Documentation section 2</h2>
+ Proin quam. Etiam ultrices. Suspendisse in justo eu magna luctus suscipit. Sed lectus. Integer euismod lacus luctus magna. Quisque cursus, metus vitae pharetra auctor, sem massa mattis sem, at interdum magna augue eget diam.
+ </div>
+
+ <div class="section" id="section3">
+ <h2>Documentation section 3</h2>
+ Vestibulum tincidunt malesuada tellus. Ut ultrices ultrices enim. <b>Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi lacinia molestie dui</b>. Curabitur sit amet mauris. Morbi in dui quis est pulvinar ullamcorper. Nulla facilisi. Integer lacinia sollicitudin massa. Cras metus. Sed aliquet risus a tortor. Integer id quam. Morbi mi. <b>Morbi in dui quis est pulvinar ullamcorper</b>. Quisque nisl felis, venenatis tristique, dignissim in, ultrices sit amet, augue.
+ </div>
+
+ <div class="section" id="section4">
+ <h2>Documentation section 4</h2>
+ Proin sodales libero eget ante. Nulla quam. Aenean laoreet. <b>Nulla facilisi</b>. Vestibulum nisi lectus, commodo ac, facilisis ac, ultricies eu, pede. Ut orci risus, accumsan porttitor, cursus quis, aliquet eget, justo. Sed pretium blandit orci.
+ </div>
+
+ <div class="section" id="section5">
+ <h2>Documentation section 5</h2>
+ Vivamus consectetuer risus et tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. <b>Vestibulum nisi lectus, commodo ac, facilisis ac, ultricies eu, pede</b>. Sed cursus ante dapibus diam.
+ </div>
+
+ <div class="section" id="section6">
+ <h2>Documentation section 6</h2>
+ Sed dignissim lacinia nunc. Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. <b>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos</b>.
+ </div>
+
+ <div class="section" id="section7">
+ <h2>Documentation section 7</h2>
+ Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam nec ante. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi.
+ </div>
+
+ <div class="section" id="section8">
+ <h2>Documentation section 8</h2>
+ Quisque cursus, metus vitae pharetra auctor, sem massa mattis sem, at interdum magna augue eget diam. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi lacinia molestie dui. Praesent blandit dolor. Sed non quam. <b>Etiam ultrices</b>.
+ </div>
+</div>
+
+{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.