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
e482ee51
Commit
e482ee51
authored
Jun 15, 2015
by
Nikolaos S. Papaspyrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add part 4e, higher-level URLs in templates
parent
43cb587e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
README.md
README.md
+2
-0
index.html
urlapp/templates/index.html
+2
-2
No files found.
README.md
View file @
e482ee51
...
@@ -105,3 +105,5 @@ Create `urlapp/templates/index.html` and `urlapp/templates/details.html`.
...
@@ -105,3 +105,5 @@ Create `urlapp/templates/index.html` and `urlapp/templates/details.html`.
Add 404.
Add 404.
Edit
`urlapp/views.py`
.
Edit
`urlapp/views.py`
.
Higher-level URLs.
Edit
`urlapp/templates/index.html`
.
urlapp/templates/index.html
View file @
e482ee51
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<ul>
<ul>
{% for u in url_list %}
{% for u in url_list %}
<li>
<li>
<a
href=
"
/url={{ u.id }}/
"
>
Show details
</a>
, or follow
<a
href=
"
{% url 'url' u.id %}
"
>
Show details
</a>
, or follow
<a
href=
"
/{{ u.id }}/
"
target=
"_blank"
><code>
{{ u.target }}
</code></a>
<a
href=
"
{% url 'redir' u.id %}
"
target=
"_blank"
><code>
{{ u.target }}
</code></a>
</li>
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
...
...
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