-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
合入ipapub项目支持bootstrap,base.html模板目前在apksign项目提供
- Loading branch information
Showing
2 changed files
with
94 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,46 @@ | ||
<h1>{{ object.label }} </h1> | ||
<p>安装:<a href="itms-services://?action=download-manifest&url={{ basedir }}{{ object.plist.url }}" type="text/plain">{{ upfile.path }}</a></p> | ||
{% extends "base.html" %} | ||
{% block nav-left %} | ||
<a class="navbar-brand" href="">{{ object.label }}</a> | ||
{% endblock %} | ||
{% block nav-right %} | ||
{% endblock %} | ||
{% block main-body %} | ||
<dl class="dl-horizontal"> | ||
<dt>安装:</dt> | ||
<dd> | ||
<a href="itms-services://?action=download-manifest%26url={{ basedir }}{{ object.plist.url }}" type="text/plain">{{ upfile.path }}</a> | ||
</dd> | ||
|
||
|
||
{% if object.pub %} | ||
<p>发布包:<a href="{{ object.pub.url }}"">{{ object.pub.name }}</a></p> | ||
<dt> | ||
发布包: | ||
</dt> | ||
<dd> | ||
<a href="{{ object.pub.url }}">{{ object.pub.name }}</a> | ||
</dd> | ||
{% endif %} | ||
<p>签名包:<a href="{{ object.signed.url }}" type="application/iphone">{{ object.signed }}</a></p> | ||
<p>用户: {{ object.user }}</p> | ||
<p>时间: {{ object.up_date }}</p> | ||
|
||
<dt> | ||
签名包: | ||
</dt> | ||
<dd> | ||
<a href="{{ object.signed.url }}" type="application/iphone">{{ object.signed }}</a> | ||
</dd> | ||
|
||
<dt> | ||
用户: | ||
</dt> | ||
<dd> | ||
{{ object.user }} | ||
</dd> | ||
|
||
<dt> | ||
时间: | ||
</dt> | ||
<dd> | ||
{{ object.up_date }} | ||
</dd> | ||
</dl> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,62 @@ | ||
|
||
<h3>Up Ipas</h3> | ||
<p></p> | ||
{% extends "base.html" %} | ||
{% block nav-left %} | ||
<a class="navbar-brand" href="#">Up Ipas</a> | ||
{% endblock %} | ||
{% block nav-right %} | ||
{% endblock %} | ||
{% block main-body %} | ||
{% if object_list %} | ||
<table id="ipas"> | ||
<tr> | ||
<th>Url</th> | ||
<th>状态</th> | ||
<th>标签</th> | ||
<th>用户</th> | ||
<th>时间</th> | ||
<th>发布包</th> | ||
</tr> | ||
<div class="panel panel-default"> | ||
<table class="table table-bordered"> | ||
<tr class="info"> | ||
<th class="col-xs-7 col-sm-5">Url</th> | ||
<th class="col-xs-4 col-sm-2">标签</th> | ||
<th class="col-xs-1 col-sm-1">用户</th> | ||
<th class="hidden-xs col-sm-1">状态</th> | ||
<th class="hidden-xs col-sm-2">时间</th> | ||
<th class="hidden-xs col-sm-1">发布包</th> | ||
</tr> | ||
{% for upfile in object_list %} | ||
<tr> | ||
<td> | ||
{% if upfile.signed and upfile.plist %} | ||
<a href="{{ upfile.path }}" type="text/plain">{{ upfile.path }}</a> | ||
{% endif %} | ||
</td> | ||
<td>{{ upfile.status }}</td> | ||
{% if upfile.signed and upfile.plist %} | ||
<a href="{{ upfile.path }}" type="text/plain">{{ upfile.path }}</a> | ||
{% endif %} | ||
</td> | ||
<td>{{ upfile.label }}</td> | ||
<td>{{ upfile.user }}</td> | ||
<td>{{ upfile.up_date }}</td> | ||
<td> | ||
{% if upfile.pub %} | ||
<a href="{{ upfile.pub.url }}"">{{ upfile.pub.name }}</a> | ||
{% endif %} | ||
</td> | ||
<td class="hidden-xs">{{ upfile.status }}</td> | ||
<td class="hidden-xs">{{ upfile.up_date }}</td> | ||
<td class="hidden-xs"> | ||
{% if upfile.pub %} | ||
<a href="{{ upfile.pub.url }}"">{{ upfile.pub.name }}</a> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
</div> | ||
{# .... **Now the pagination section** .... #} | ||
{% if is_paginated %} | ||
<p></p> | ||
<div class="pagination"> | ||
<span class="page-links"> | ||
{% if page_obj.has_previous %} | ||
<a href="{{ request.path }}?page={{ page_obj.previous_page_number }}">previous</a> | ||
{% endif %} | ||
<span class="page-current"> | ||
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. | ||
</span> | ||
{% if page_obj.has_next %} | ||
<a href="{{ request.path }}?page={{ page_obj.next_page_number }}">next</a> | ||
{% endif %} | ||
</span> | ||
</div> | ||
<nav class=""> | ||
<ul class="pager"> | ||
{% if page_obj.has_previous %} | ||
<li><a href="{{ request.path }}?page={{ page_obj.previous_page_number }}">previous</a></li> | ||
{% else %} | ||
<li class="disabled"><a href="">previous</a></li> | ||
{% endif %} | ||
<li>Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.</li> | ||
{% if page_obj.has_next %} | ||
<li><a href="{{ request.path }}?page={{ page_obj.next_page_number }}">next</a></li> | ||
{% else %} | ||
<li class="disabled"><a href="">next</a></li> | ||
{% endif %} | ||
</ul> | ||
</nav> | ||
{% endif %} | ||
{% else %} | ||
|
||
<p>No ipas found!!! :(</p> | ||
{% endif %} | ||
{% else %} | ||
|
||
<p>No ipas found!!! :(</p> | ||
{% endif %} | ||
{% endblock %} | ||
|