-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6be528b
commit 55fd186
Showing
10 changed files
with
194 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block mainbody %} | ||
|
||
<a href="/movie/search/movie/{{ query_string }}/{{ 1 }}"> | ||
<button class="button search_button"> | ||
<span class="glyphicon glyphicon-film"></span> Movie | ||
</button> | ||
</a> | ||
<a href="/movie/search/actor/{{ query_string }}/{{ 1 }}"> | ||
<button class="button search_button" style="background-color: #008CBA;color: white;"> | ||
<span class="glyphicon glyphicon-user"></span> Actor | ||
</button> | ||
</a> | ||
<div> | ||
<h2>{{ length }} actor(s) with "{{ query_string }}":</h2> | ||
<hr> | ||
|
||
{% for actor in items %} | ||
<h2><a href="/movie/actor_detail/{{ actor.actorid }}" target="_self">{{ actor.name }}</a></h2> | ||
<img border="0" src="{{ actor.photo }}" alt="Cannot load photo, sorry!" width="200" height="280"> | ||
<hr> | ||
{% endfor %} | ||
|
||
{% if pages %} | ||
<p>You are in the {{ current_page }} page, {{ page_number }} pages in total</p> | ||
{% if current_page != 1 %} | ||
<a href="/movie/search/actor/{{ query_string }}/{{ 1 }}" target="_self">First</a> | ||
<a href="/movie/search/actor/{{ query_string }}/{{ current_page|add:-1 }}" target="_self">Previous</a> | ||
{% endif %} | ||
|
||
{% for page in pages %} | ||
{% if page == current_page %} | ||
<b>{{ page }}</b> | ||
{% else %} | ||
<a href="/movie/search/actor/{{ query_string }}/{{ page }}" target="_self">{{ page }}</a> | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% if current_page != page_number %} | ||
<a href="/movie/search/actor/{{ query_string }}/{{ current_page|add:1 }}" target="_self">Next</a> | ||
<a href="/movie/search/actor/{{ query_string }}/{{ page_number }}" target="_self">Last</a> | ||
{% endif %} | ||
{% endif %} | ||
|
||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block mainbody %} | ||
|
||
<a href="/movie/search/movie/{{ query_string }}/{{ 1 }}"> | ||
<button class="button search_button" style="background-color: #008CBA;color: white;"> | ||
<span class="glyphicon glyphicon-film"></span> Movie | ||
</button> | ||
</a> | ||
<a href="/movie/search/actor/{{ query_string }}/{{ 1 }}"> | ||
<button class="button search_button"> | ||
<span class="glyphicon glyphicon-user"></span> Actor | ||
</button> | ||
</a> | ||
<div> | ||
<h2>{{ length }} movie(s) with "{{ query_string }}":</h2> | ||
<hr> | ||
|
||
{% for movie in items %} | ||
<h2><a href="/movie/movie_detail/{{ movie.movieid }}" target="_self">{{ movie.title }}</a></h2> | ||
<img border="0" src="{{ movie.poster }}" alt="Cannot load photo, sorry!" width="200" height="320"> | ||
<hr> | ||
{% endfor %} | ||
|
||
{% if pages %} | ||
<p>You are in the {{ current_page }} page, {{ page_number }} pages in total</p> | ||
{% if current_page != 1 %} | ||
<a href="/movie/search/movie/{{ query_string }}/{{ 1 }}" target="_self">First</a> | ||
<a href="/movie/search/movie/{{ query_string }}/{{ current_page|add:-1 }}" target="_self">Previous</a> | ||
{% endif %} | ||
|
||
{% for page in pages %} | ||
{% if page == current_page %} | ||
<b>{{ page }}</b> | ||
{% else %} | ||
<a href="/movie/search/movie/{{ query_string }}/{{ page }}" target="_self">{{ page }}</a> | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% if current_page != page_number %} | ||
<a href="/movie/search/movie/{{ query_string }}/{{ current_page|add:1 }}" target="_self">Next</a> | ||
<a href="/movie/search/movie/{{ query_string }}/{{ page_number }}" target="_self">Last</a> | ||
{% endif %} | ||
{% endif %} | ||
|
||
</div> | ||
{% endblock %} |
Oops, something went wrong.