Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
django-url-follower
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikolaos S. Papaspyrou
django-url-follower
Commits
e9a5d5b2
Commit
e9a5d5b2
authored
Jun 15, 2015
by
Nikolaos S. Papaspyrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add part 4g, add base template
parent
38713373
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
0 deletions
+48
-0
base.html
urlapp/templates/base.html
+36
-0
details.html
urlapp/templates/details.html
+6
-0
index.html
urlapp/templates/index.html
+6
-0
No files found.
urlapp/templates/base.html
0 → 100644
View file @
e9a5d5b2
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xml:lang=
"en"
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
URL follower
</title>
<link
rel=
"stylesheet"
href=
"https://bootswatch.com/darkly/bootstrap.min.css"
>
</head>
<body>
<nav
class=
"navbar navbar-default"
>
<div
class=
"container-fluid"
>
<div
class=
"navbar-header"
>
<a
class=
"navbar-brand"
href=
"{% url 'index' %}"
>
URL follower
</a>
</div>
</div>
</nav>
<div
class=
"container"
>
<div
class=
"row"
>
{% block content %}
{% endblock %}
</div>
<footer>
<hr
/>
<div
class=
"row"
>
(c) 2015, My magical web app!
</div>
</footer>
</div>
<script
type=
"text/javascript"
src=
"https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"
></script>
</body>
</html>
urlapp/templates/details.html
View file @
e9a5d5b2
{% extends "base.html" %}
{% block content %}
<h1>
Details of URL {{ url.id }}
</h1>
<h1>
Details of URL {{ url.id }}
</h1>
<ul>
<ul>
...
@@ -6,3 +10,5 @@
...
@@ -6,3 +10,5 @@
<li>
Target:
<a
href=
"{{ url.target }}"
target=
"_blank"
><code>
{{ url.target }}
</code></a></li>
<li>
Target:
<a
href=
"{{ url.target }}"
target=
"_blank"
><code>
{{ url.target }}
</code></a></li>
<li>
Followed: {{ url.used }} time(s).
</li>
<li>
Followed: {{ url.used }} time(s).
</li>
</ul>
</ul>
{% endblock %}
urlapp/templates/index.html
View file @
e9a5d5b2
{% extends "base.html" %}
{% block content %}
<h1>
List of URLs
</h1>
<h1>
List of URLs
</h1>
{% if url_list %}
{% if url_list %}
...
@@ -12,3 +16,5 @@
...
@@ -12,3 +16,5 @@
{% else %}
{% else %}
<p>
No URLs are available.
</p>
<p>
No URLs are available.
</p>
{% endif %}
{% endif %}
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment