1
Fork 0

Added about me page

This commit is contained in:
Jake Howard 2015-12-28 12:36:05 +00:00
parent 717ef46e6c
commit 6026af24f9
6 changed files with 27 additions and 8 deletions

View file

@ -4,6 +4,7 @@ from . import views
urlpatterns = [
url(r'^about/website/$', views.AboutWebsiteView.as_view(), name='about-website'),
url(r'^about/me/$', views.AboutMeView.as_view(), name='about-me'),
url(r'^about/$', views.AboutIndexView.as_view(), name='about'),
url(r'^$', views.IndexView.as_view(), name='index')
]

View file

@ -32,3 +32,7 @@ class AboutWebsiteView(CustomTemplate):
class AboutIndexView(CustomTemplate):
template_name = 'about/index.html'
html_title = "About"
class AboutMeView(CustomTemplate):
template_name = 'about/me.html'
html_title = "About Me"

View file

@ -6,7 +6,6 @@ from project.pages.views import Custom404View, NoJavascriptView
urlpatterns = [
url(r'^site-admin/', include(admin.site.urls)),
url(r'^404/', Custom404View.as_view(), name="404"),
url(r'^404/', Custom404View.as_view(), name="404"),
url(r'^no-js/', NoJavascriptView.as_view(), name="no-js"),
url(r'', include('project.pages.urls', namespace='pages'))
]

View file

@ -14,7 +14,7 @@
<div class="row">
<div class="col-sm-6">
<div class="thumbnail">
<img src="" alt="" />
<img src="http://cdn2.itpro.co.uk/sites/itpro/files/server_room.jpg" alt="Server Image" />
<div class="caption">
<h3>About Website</h3>
<p>
@ -32,10 +32,10 @@
<div class="caption">
<h3>About Me</h3>
<p>
Some info about me.
Some info about me. Although not very much
</p>
<p>
<a href="" class="btn btn-primary btn-block">More Info</a>
<a href="{% url 'pages:about-me' %}" class="btn btn-primary btn-block">More Info</a>
</p>
</div>
</div>

15
templates/about/me.html Normal file
View file

@ -0,0 +1,15 @@
{% extends 'content_base.html' %}
{% block pageTitle %}About Me{% endblock %}
{% block content %}
<div class="container">
<div class="panel panel-default">
<div class="panel-body">
<p>
</p>
</div>
</div>
</div>
{% endblock %}