diff options
Diffstat (limited to 'python/templates/pages')
18 files changed, 209 insertions, 745 deletions
diff --git a/python/templates/pages/build_req/index.html b/python/templates/pages/build_req/index.html deleted file mode 100644 index 979921c..0000000 --- a/python/templates/pages/build_req/index.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "layout/base.html" %} -{% block content %} -<div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title"> - <span class="fa fa-fw fa-history"></span> - <a href="/packages/added">New Build Requst On Packages</a> - </h3> - </div> - <div class="table-responsive"> - <table class="table table-striped"> - {% include "includes/frontpage/new_build_req" %} - </table> - </div> -</div> -{% endblock %} diff --git a/python/templates/pages/categories/index.html b/python/templates/pages/categories/index.html deleted file mode 100644 index f9463e9..0000000 --- a/python/templates/pages/categories/index.html +++ /dev/null @@ -1,61 +0,0 @@ -{% extends "layout/base.html" %} -{% block content %} -<div class="container"> - <div class="row"> - <div class="col-xs-12"> - <ol class="breadcrumb"> - <li><a href="/home/">Home</a></li> - <li class="active">Packages</li> -</ol> - -<h1>Packages</h1> - -<div class="row"> - <div class="col-md-9"> - <div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title">Browse Categories</h3> - </div> - <div class="panel-body"> - <ul class="kk-col-list kk-4col-list kk-category-listing"> - {% for C_list in CM_tmp %} - <li class="kk-col-list-header"><span class="kk-group-header">{{ C_list.letter }}</span></li> - {% for CM in C_list.CM_list %} - <li><a title="{{ CM.Descriptions }}" data-toggle="tooltip" data-placement="right" href="/categories/packages/{{ CM.CategoryId }}/">{{CM.Category }}</a></li> - {% endfor %} - {% endfor %} - </ul> - </div> - </div> - </div> - <div class="col-md-3"> - <div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title">Update Feeds</h3> - </div> - <div class="list-group"> - <a href="/packages/added" class="list-group-item"> - <span class="fa fa-fw fa-history"></span> - Added Packages - </a> - <a href="/packages/updated" class="list-group-item"> - <span class="fa fa-fw fa-asterisk"></span> - Updated Packages - </a> - <a href="/packages/stable" class="list-group-item"> - <span class="fa fa-fw fa-check-circle-o"></span> - Newly Stable Packages - </a> - <a href="/packages/keyworded" class="list-group-item"> - <span class="fa fa-fw fa-circle-o"></span> - <span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span> - </a> - </div> - </div> - </div> -</div> - - </div> - </div> -</div> -{% endblock %} diff --git a/python/templates/pages/categories/packages/index.html b/python/templates/pages/categories/packages/index.html deleted file mode 100644 index 0e5678d..0000000 --- a/python/templates/pages/categories/packages/index.html +++ /dev/null @@ -1,63 +0,0 @@ -{% extends "layout/base.html" %} -{% block content %} -<div class="container"> - <div class="row"> - <div class="col-xs-12"> - <ol class="breadcrumb"> - <li><a href="/home/">Home</a></li> - <li><a href="/categories">Packages</a></li> - <li class="active">{{ C.CategoryId.Category }}</li> -</ol> - -<div class="row"> - <div class="col-md-4"> - <h1 class="stick-top"> - <span class="fa fa-fw fa-cubes"></span> - {{ C.CategoryId.Category }} - </h1> - </div> - <div class="col-md-8"> - <p class="lead" style="margin: 0;"> - {{ C.Descriptions }} - </p> - </div> -</div> -<hr> - -<div class="row"> - <div class="col-md-9"> - <!--<p> - <input type="text" class="form-control form-control-xl" placeholder="Search packages in app-accessibility"> - </p>--> - - <div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title">All packages</h3> - </div> - <table class="table"> -{% for PM in PM_tmp %} - <tr> - <th class="kk-nobreak-cell"><a href="/categories/packages/versions/{{ PM.PackageId.PackageId }}">{{ PM.PackageId.Package }}</a></th> - <td>{{ PM.Descriptions }}</td> - </tr> -{% endfor %} - - </table> - </div> - </div> - <div class="col-md-3"> - <div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title">Statistics</h3> - </div> - <div class="panel-body"> - {{ PM_tmp|length }} Packages - </div> - </div> - </div> -</div> - - </div> - </div> -</div> -{% endblock %} diff --git a/python/templates/pages/categories/packages/versions/index.html b/python/templates/pages/categories/packages/versions/index.html deleted file mode 100644 index 7300f07..0000000 --- a/python/templates/pages/categories/packages/versions/index.html +++ /dev/null @@ -1,233 +0,0 @@ -{% extends "layout/base.html" %} -{% block content %} -<div class="kk-header-container"> - <div class="container"> - <div class="row"> - <div class="col-xs-12"> - <ol class="breadcrumb"> - <li><a href="/">Home</a></li> - <li><a href="/categories">Packages</a></li> - <li><a href="/categories/packages/P.PackageId.PackageId">{{ P.PackageId.CategoryId.Category }}</a></li> - <li class="active">{{ P.PackageId.Package }}</li> - </ol> - - <div class="row"> - <div class="col-md-4"> - <h1 class="stick-top kk-package-title" id="package-title" data-atom="{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}" data-category="{{ P.PackageId.CategoryId.Category }}" data-name="{{ P.PackageId.Package }}"> - <small class="kk-package-cat">{{ P.PackageId.Package }}/</small> - <div> - <svg height="32" class="octicon octicon-package right left kk-package-icon" aria-label="Package icon" viewBox="0 0 16 16" version="1.1" width="32" role="img"><path d="M1 4.27v7.47c0 .45.3.84.75.97l6.5 1.73c.16.05.34.05.5 0l6.5-1.73c.45-.13.75-.52.75-.97V4.27c0-.45-.3-.84-.75-.97l-6.5-1.74a1.4 1.4 0 0 0-.5 0L1.75 3.3c-.45.13-.75.52-.75.97zm7 9.09l-6-1.59V5l6 1.61v6.75zM2 4l2.5-.67L11 5.06l-2.5.67L2 4zm13 7.77l-6 1.59V6.61l2-.55V8.5l2-.53V5.53L15 5v6.77zm-2-7.24L6.5 2.8l2-.53L15 4l-2 .53z"></path></svg> - <div class="kk-package-name">{{ P.PackageId.Package }}</div> - </div> - </h1> - </div> - <div class="col-md-8"> - <p class="lead kk-package-maindesc"> - {{ P.Descriptions }} - </p> - - <p class="kk-package-homepage"> - <a href="https://wiki.gnome.org/Accessibility" rel="nofollow">https://wiki.gnome.org/Accessibility</a> - </p> - </div> - </div> - </div> - </div> - </div> -</div> - - -<div class="container"> - <div class="row"> - <div class="col-xs-12"> - -<div class="row"> - <div class="col-md-9"> - <div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title"> - Available Versions - </h3> - </div> - {% for E in EM_info %} - <table class="table table-bordered kk-versions-table"> -<tr> - <td> - <strong>{{ E.Version }}</strong><span class="kk-slot"> :{{ E.Slot }}:</span>{{ P.PackageId.RepoId.Repo }} - {% for R in E.ER_tmp %} - <span class="label label-danger kk-restrict-label" titel="The following feature are restricted: {{ R.RestrictionId.Restriction}}">{{ R.RestrictionId.Restriction|first|upper }}</span> - {% endfor %} - <small class="text-muted pull-right"> - <span>{{ E.TimeStamp|date:"D d b Y G i" }}</span> - </small> - </td> -</tr> -<tr> - <td> - {% for K in E.EK_tmp %} - {% if K.EbuildId.EbuildId == E.EbuildId and K.KeywordId.Keyword != '*' and '-' not in K.KeywordId.Keyword %} - {% if K.Status == 'Stable' %}<span class="label kk-keyword-stable" title="{{ E.V }} is stable on {{ K.KeywordId.Keyword }}">{{ K.KeywordId.Keyword }}</span>{% endif %} - {% if K.Status == 'Unstable' %}<span class="label kk-keyword-testing" title="{{ E.V }} is testing on {{ K.KeywordId.Keyword }}">~{{ K.KeywordId.Keyword }}</span>{% endif %} - {% if K.Status == 'Negative' %}<span class="label kk-keyword-negative" title="{{ E.V }} is negative on {{ K.KeywordId.Keyword }}">-{{ K.KeywordId.Keyword }}{% endif %} - {% endif %} - {% endfor %} - </td> -</tr> -<tr> - <td> - {% for U in E.EU_tmp %} - {% if U.Status %} - <span class="label label-info">{{ U.UseId.Flag }}</span> - {% endif %} - {% endfor %} - </td> -</tr> -<tr> - <td> - {% for BL in E.BL_tmp %} - {% for FI in E.fi_tmp %} - {% if FI.BuildLogId == BL.BuildLogId %} - {% if FI.Blo %} - <span class="label label-info">Others</span> - {% else %} - {% if FI.qa %} - <span class="label label-warning">Qa</span> - {% else %} - <span class="label label-success">Qa</span> - {% endif %} - {% if FI.repoman %} - <span class="label label-warning">Repoman</span> - {% else %} - <span class="label label-success">Repoman</span> - {% endif %} - - {% if FI.Blb %} - <span class="label label-danger">Build</span> - {% else %} - <span class="label label-success">Build</span> - {% endif %} - {% endif %} - {% endif %} - {% endfor %} - <a class="btn btn-default btn-xs" href="/new/logs/build/{{ BL.BuildLogId }}/">More info</a> - {% endfor %} - </td> -</tr> -</table> -{% endfor %} -</div> - - - - - <div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title">Package Metadata</h3> - </div> - <ul class="list-group kk-metadata-list"> - <li class="kk-metadata-item list-group-item"> - <div class="row"> - <div class="col-xs-12 col-md-3 kk-metadata-key"> - <span class="fa fa-fw fa-sliders"></span> - USE flags - </div> - <div class="col-xs-12 col-md-9"> - - - - </div> - </div> - </li> - <li class="kk-metadata-item list-group-item"> - <div class="row"> - <div class="col-xs-12 col-md-3 kk-metadata-key"> - <span class="fa fa-fw fa-legal"></span> - License - </div> - <div class="col-xs-12 col-md-9"> - <a href="https://gitweb.gentoo.org/repo/gentoo.git/plain/licenses/LGPL-2+">LGPL-2+</a> - </div> - </div> - </li> - <li class="kk-metadata-item list-group-item"> - <div class="row"> - <div class="col-xs-12 col-md-3 kk-metadata-key"> - <span class="fa fa-fw fa-user"></span> - Maintainer(s) - </div> - <div class="col-xs-12 col-md-9"> - <a title="gnome@gentoo.org" href="mailto:gnome@gentoo.org">Gentoo GNOME Desktop</a> - </div> - </div> - </li> - </ul> -</div> - - <div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title">Changelog</h3> - </div> - <ul class="list-group" id="changelog-container"> - <li class="list-group-item kk-panel-content-sorry"> - <span class="fa fa-refresh fa-spin fa-3x"></span> - <noscript> - <br><br> - Inline Changelog cannot be displayed. - <br><br> - <a href="https://gitweb.gentoo.org/repo/gentoo.git/log/{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}?showmsg=1" class="btn btn-default"> - <span class="fa fa-fw fa-history"></span> - View Git Changelog - </a> - </noscript> - </li> - </ul> -</div> - - </div> - <div class="col-md-3"> - <div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title">Resources</h3> - </div> - <div class="list-group"> - <a href="https://bugs.gentoo.org/buglist.cgi?quicksearch={{ P.PackageId.CategoryId.Category }}%2{{ P.PackageId.Package }}" class="list-group-item" target="_blank"> - <span class="fa fa-fw fa-bug"></span> - Related bugs - </a> - <a href="https://wiki.gentoo.org/index.php?title=Special%3ASearch&fulltext=Search&search={{ P.PackageId.Package }}" class="list-group-item" target="_blank"> - <span class="fa fa-fw fa-book"></span> - Documentation - </a> - <a href="https://forums.gentoo.org/search.php?search_terms=all&show_results=topics&search_keywords={{ P.PackageId.Package }}&mode=results" class="list-group-item" target="_blank"> - <span class="fa fa-fw fa-comments-o"></span> - Forums posts - </a> - <a href="https://gitweb.gentoo.org/repo/gentoo.git/tree/{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}" class="list-group-item" target="_blank"> - <span class="fa fa-fw fa-code-fork"></span> - Git repository browser - </a> - <a href="https://gitweb.gentoo.org/repo/gentoo.git/log/{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}?showmsg=1" class="list-group-item" target="_blank"> - <span class="fa fa-fw fa-history"></span> - Git log - </a> - <a href="https://gitweb.gentoo.org/repo/gentoo.git/atom/{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}?h=master" class="list-group-item" target="_blank"> - <span class="fa fa-fw fa-rss"></span> - Changes feed - </a> - <a href="http://www.portagefilelist.de/site/query/listPackageVersions/?category={{ P.PackageId.CategoryId.Category }}&package={{ P.PackageId.Package }}&do#result" class="list-group-item" target="_blank"> - <span class="fa fa-fw fa-files-o"></span> - Installed files <small>(via PFL<span class="fa fa-fw fa-external-link-square"></span>)</small> - </a> - </div> -</div> - - </div> -</div> - -<script src="https://packages.gentoo.org/assets/packages/show-c78475ea4f81a974351958c07ed5c4892c04b77054506dec44f177cd8cb9271d.js"></script> - - </div> - </div> -</div> - -{% endblock %} diff --git a/python/templates/pages/home/index.html b/python/templates/pages/home/index.html deleted file mode 100644 index 2d91149..0000000 --- a/python/templates/pages/home/index.html +++ /dev/null @@ -1,70 +0,0 @@ -{% extends "layout/base.html" %} -{% block content %} -<div class="jumbotron"> - <h2 class="site-welcome stick-top">Welcome to the Home of <span class="text-primary">19,363</span> Gentoo Packages</h2> - <form action="/packages/search" method="get"> - <div class="typeahead-container"> - <div class="typeahead-field"> - <span class="typeahead-query"> - <input id="q" name="q" type="search" autocomplete="off" placeholder="Find Packages" aria-label="Find Packages" autofocus> - </span> - <span class="typeahead-button"> - <button type="submit" title="Find" aria-label="Find"> - <span class="typeahead-search-icon"></span><span class="sr-only">Find</span> - </button> - </span> - </div> - </div> - </form> -</div> -<div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title"> - <span class="fa fa-fw fa-history"></span> - <a href="/packages/added">Added Packages</a> - </h3> - </div> - <div class="table-responsive"> - <table class="table table-striped"> - {% include "includes/frontpage/new_packages" %} - </table> - </div> -</div> -<div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title"> - <span class="fa fa-fw fa-asterisk"></span> - <a href="/packages/updated">Updated Packages</a> - </h3> - </div> - <ul class="list-group"> - {% include "includes/frontpage/updated_packages" %} - </ul> -</div> -<div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title"> - <span class="fa fa-fw fa-history"></span> - <a href="/packages/added">New Build Requst On Packages</a> - </h3> - </div> - <div class="table-responsive"> - <table class="table table-striped"> - {% include "includes/frontpage/new_build_req" %} - </table> - </div> -</div> -<div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title"> - <span class="fa fa-fw fa-history"></span> - <a href="/packages/added">New Build Logs On Packages</a> - </h3> - </div> - <div class="table-responsive"> - <table class="table table-striped"> - {% include "includes/frontpage/new_logs" %} - </table> - </div> -</div> -{% endblock %} diff --git a/python/templates/pages/logs/all/build/index.html b/python/templates/pages/logs/all/build/index.html deleted file mode 100644 index efac3b3..0000000 --- a/python/templates/pages/logs/all/build/index.html +++ /dev/null @@ -1,103 +0,0 @@ -{% extends "layout/base.html" %} -{% block content %} -<div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title"> - <span class="fa fa-fw fa-history"></span> - Build Logs On Packages - </h3> - {% if BL_tmp.has_other_pages %} - <ul class="pagination"> - {% if BL_tmp.has_previous %} - <li><a href="?page={{ BL_tmp.previous_page_number }}">«</a></li> - {% else %} - <li class="disabled"><span>«</span></li> - {% endif %} - {% for i in BL_tmp.paginator.page_range %} - {% if BL_tmp.number == i %} - <li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span></li> - {% else %} - <li><a href="?page={{ i }}">{{ i }}</a></li> - {% endif %} - {% endfor %} - {% if BL_tmp.has_next %} - <li><a href="?page={{ BL_tmp.next_page_number }}">»</a></li> - {% else %} - <li class="disabled"><span>»</span></li> - {% endif %} - </ul> -{% endif %} - </div> - <div class="table-responsive"> - <table class="table table-striped"> - {% for BL in BL_tmp %} -<tr> - <td> - <a href="/logs/build/{{ BL.BuildLogId }}/"> - <span class="text-muted">{{ BL.C }}/</span>/<strong>{{ BL.P }}-{{ BL.V }}::{{ BL.R }}</strong> - </a> - </td> - <td> - <p title="{{ BL.SummeryText }}">{{ BL.SummeryText|truncatewords:5 }}</p> - {% if BL.Fail %} - {% if BL.FI.others %} - <span class="label label-info">Others</span> - {% else %} - {% if BL.FI.qa %} - <span class="label label-warning"> - {% else %} - <span class="label label-success"> - {% endif %} - Qa</span> - {% if BL.FI.repoman %} - <span class="label label-warning"> - {% else %} - <span class="label label-success"> - {% endif %} - Repoman</span> - {% if BL.FI.TestRun %} - {% if BL.FI.test %} - <span class="label label-danger"> - {% else %} - <span class="label label-success"> - {% endif %} - Test</span> - {% endif %} - {% if BL.FI.build %} - <span class="label label-danger">{{ BL.FI.builderror }} - {% else %} - <span class="label label-success">Build - {% endif %} - </span> - {% endif %} - {% else %} - <span class="label label-success">Ok</span> - {% endif %} - </td> -</tr> -{% endfor %} - </table> - </div> -</div> -{% if BL_tmp.has_other_pages %} - <ul class="pagination"> - {% if BL_tmp.has_previous %} - <li><a href="?page={{ BL_tmp.previous_page_number }}">«</a></li> - {% else %} - <li class="disabled"><span>«</span></li> - {% endif %} - {% for i in BL_tmp.paginator.page_range %} - {% if BL_tmp.number == i %} - <li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span></li> - {% else %} - <li><a href="?page={{ i }}">{{ i }}</a></li> - {% endif %} - {% endfor %} - {% if BL_tmp.has_next %} - <li><a href="?page={{ BL_tmp.next_page_number }}">»</a></li> - {% else %} - <li class="disabled"><span>»</span></li> - {% endif %} - </ul> -{% endif %} -{% endblock %} diff --git a/python/templates/pages/logs/build/index.html b/python/templates/pages/logs/build/index.html deleted file mode 100644 index 0bbc96b..0000000 --- a/python/templates/pages/logs/build/index.html +++ /dev/null @@ -1,114 +0,0 @@ -{% extends "layout/base.html" %} -{% block content %} -<div class="row"> - <h2>{{ BLI.C }}/{{ BLI.P }}-{{ BLI.V }}::{{ BLI.R }} - {% if FI.others %} - <span class="label label-info">Others</span> - {% else %} - {% if FI.qa %} - <span class="label label-warning"> - {% else %} - <span class="label label-success"> - {% endif %} - Qa</span> - {% if FI.repoman %} - <span class="label label-warning"> - {% else %} - <span class="label label-success"> - {% endif %} - Repoman</span> - {% if FI.TestRun %} - {% if FI.test %} - <span class="label label-danger"> - {% else %} - <span class="label label-success"> - {% endif %} - Test</span> - {% endif %} - {% if FI.build %} - <span class="label label-danger">{{ FI.builderror }} - {% else %} - <span class="label label-success">Build - {% endif %} - </span> - {% endif %} - </h2> - {% if BLI.BugId %} - <span class="label label-info"> - <a href="https://bugs.gentoo.org/show_bug.cgi?id={{ BLI.BugId}}" target=_blank>Bug Gentoo {{ BLI.BugId }}</a> - </span> - {% endif %} -</div> -<div class="row-fluid"> - <div class=span3> - <p class="lead">Host information</p> - Host: {{ BLI.hostname }}<br /> - Config: {{BLI.config }}<br /> - Profile: {{BLI.profile }}<br/> - Emerge options : - </div> - {% if BLI.use_enable %} - <div class="span3 "> - <p class="lead">Enabled useflags</p> - {% for use in BLI.use_enable %} - {{ use }} - {% endfor %} - </div> - {% endif %} - {% if BLI.use_disable %} - <div class=span3> - <p class="lead">Disabled useflags</p> - {% for use in BLI.use_disable %} - {{ use }} - {% endfor %} - </div> -{% endif %} - </div> - <div class="row-fluid"> - <div class=span12> - {% if BLI.Summery_text %} - <p class="lead">Summery: </p> - {{ BLI.Summery_text|linebreaks }} - {% endif %} - </div> - </div> - <div class="row-fluid"> - <div class=span12> - {% if BLI.Repoman %} - <p class="lead">Repoman Summery: </p> - {{ BLI.Repoman|linebreaks }} - {% endif %} - </div> - </div> - <div class="row-fluid"> - <div class=span12> - {% if BLI.QA %} - <p class="lead">QA Summery: </p> - {{ BLI.QA|linebreaks }} - {% endif %} - </div> - </div> - <div class="row-fluid"> - <div class=span12> - <p class="lead">Emerge Info: </p> - {{ BLI.emerge_info_text|linebreaks }} - </div> - </div> - <div class="row-fluid"> - <div class="span12"> - {% if BLI.logname %} - <br /> - Log file name:{{ BLI.logname }}<br /> - <a href="{{ STATIC_URL }}/logs/{{BLI.hostname}}/{{BLI.config}}/{{ BLI.logname }}">Raw log<a/><br /> - {% if user.is_authenticated %} - {% if bugzillalogin %} - <a href="/logs/build/submitlog/{{BLI.BuildLogId}}/"> - {% else %} - <a href="/user/bugzillalogin/"> - {% endif %} - Summit log to Gentoo's bugzilla</a> - {% endif %} - {% endif %} - </div> - </div> -{% endblock %} diff --git a/python/templates/pages/logs/build/submitbug/index.html b/python/templates/pages/logs/build/submitbug/index.html deleted file mode 100644 index 4f1458f..0000000 --- a/python/templates/pages/logs/build/submitbug/index.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "layout/base.html" %} -{% block content %} -<form action="/logs/build/submitlog/{{B.BuildLogId}}/" method="post"> -{% csrf_token %} -{{ form.as_p }} -<input type="submit" value="Submit" /> -</form> -{% endblock %} diff --git a/python/templates/pages/logs/index.html b/python/templates/pages/logs/index.html deleted file mode 100644 index ff5f354..0000000 --- a/python/templates/pages/logs/index.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends "layout/base.html" %} -{% block content %} -<div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title"> - <span class="fa fa-fw fa-history"></span> - <a href="/packages/added">New Build Logs On Packages</a> - </h3> - </div> - <div class="table-responsive"> - <table class="table table-striped"> - {% include "includes/frontpage/new_logs" %} - </table> - </div> -</div> -<div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title"> - <span class="fa fa-fw fa-history"></span> - <a href="/packages/added">New Repoman Logs On Packages</a> - </h3> - </div> - <div class="table-responsive"> - <table class="table table-striped"> - {% include "includes/frontpage/new_repoman" %} - </table> - </div> -</div> -<div class="panel panel-default"> - <div class="panel-heading"> - <h3 class="panel-title"> - <span class="fa fa-fw fa-history"></span> - <a href="/packages/added">New Qa Logs On Packages</a> - </h3> - </div> - <div class="table-responsive"> - <table class="table table-striped"> - {% include "includes/frontpage/new_qa" %} - </table> - </div> -</div> -{% endblock %} diff --git a/python/templates/pages/packages/category/index.html b/python/templates/pages/packages/category/index.html new file mode 100644 index 0000000..2538f88 --- /dev/null +++ b/python/templates/pages/packages/category/index.html @@ -0,0 +1,33 @@ +{% extends "layout/base.html" %} +{% block content %} +<div class="row"> + <h2>Packages in {{ C.Category }}</h2> + <div class="col-xs-12 col-md-5"> + {% for PM in PM_tmp %} + <table class="table table-striped frontpage-table"> + <tr> + <td class="frontpage-table-package-atom"> + <a href="/package/{{ PM.PackageId }}/" title="{{ C.Category }}/{{ PM.Package }}">{{ C.Category }}/{{ PM.Package }}</a> + <p title="{{ PM.Commitlog }}">Commit Log</p> + </td> + <td> + <p title="{{ PM.Descriptions }}">{{ PM.Descriptions }}</p> + <p title="{% for P in PM.Ebuilds %}{{ PM.Package }}/{{ P }}{% endfor %}">Versions + {% if PM.Repoman %} + <a class="btn btn-warning btn-xs" href="/repoman/{{PM.PackageId }}/">Repoman</a> + {% endif %} + </p> + </td> + </tr> + </table> + {% if forloop.last %} + </div> + {% else %} + {% if forloop.counter|divisibleby:"2" %} + </div><div class="col-xs-12 col-md-5"> + {% endif %} + {% endif %} + {% endfor %} +</div> + +{% endblock %}
\ No newline at end of file diff --git a/python/templates/pages/categories/packages/versions/ebuild/index.html b/python/templates/pages/packages/ebuilds/ebuild/index.html index 49ad3e5..e000a53 100644 --- a/python/templates/pages/categories/packages/versions/ebuild/index.html +++ b/python/templates/pages/packages/ebuilds/ebuild/index.html @@ -9,6 +9,13 @@ <td class="frontpage-table-package-atom"> <p" title="{{ E.PackageId.CategoryId.Category }}/{{ E.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.PackageId.RepoId.Repo }}">{{ E.PackageId.Package }}-{{ E.Version }}::{{ E.PackageId.RepoId.Repo }}</p> <a class="btn btn-default btn-xs" href="/buildpackage/{{ E.EbuildId.EbuildId }}/">Build</a> + {% for BL in BL_tmp %} + {% if BL.Fail %} + <a class="btn btn-danger btn-xs" href="/buildlog/{{ BL.BuildLogId }}/">Fail</a> + {% else %} + <a class="btn btn-success btn-xs" href="/buildlog/{{ BL.BuildLogId }}/">Success</a> + {% endif %} + {% endfor %} </td> <td> {% for K in EK_tmp %} @@ -36,40 +43,5 @@ {% endfor %} </table> </div> - <div class="col-xs-12 col-md-9"> - <table class="table table-striped frontpage-table"> - {% for BL in BL_tmp %} - <tr> - <td class="frontpage-table-package-atom"> - {% for FI in fi_tmp %} - {% if FI.BuildLogId == BL.BuildLogId %} - {% if FI.Blo %} - <span class="label label-info">Others</span> - {% else %} - {% if FI.qa %} - <span class="label label-warning">Qa</span> - {% else %} - <span class="label label-success">Qa</span> - {% endif %} - {% if FI.repoman %} - <span class="label label-warning">Repoman</span> - {% else %} - <span class="label label-success">Repoman</span> - {% endif %} - - {% if FI.Blb %} - <span class="label label-danger">Build</span> - {% else %} - <span class="label label-success">Build</span> - {% endif %} - {% endif %} - {% endif %} - {% endfor %} - <a class="btn btn-default btn-xs" href="/new/logs/build/{{ BL.BuildLogId }}/">More info</a> - </td> - </tr> - {% endfor %} - </table> - </div> </div> {% endblock %}
\ No newline at end of file diff --git a/python/templates/pages/packages/ebuilds/index.html b/python/templates/pages/packages/ebuilds/index.html new file mode 100644 index 0000000..630b524 --- /dev/null +++ b/python/templates/pages/packages/ebuilds/index.html @@ -0,0 +1,30 @@ +{% extends "layout/base.html" %} +{% block content %} +<div class="row"> + <div class="col-xs-12 col-md-9"> + <h2>{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}</h2> + <p>Commit log</p> + <p>{{ P.Gitlog|linebreaksbr }}</p> + <table class="table table-striped frontpage-table"> + {% for E in EM_tmp %} + <tr> + <td class="frontpage-table-package-atom"> + <a href="/ebuild/{{ E.EbuildId.EbuildId }}/" title="{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }}">{{ P.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }}</a></td> + <td> + {% for K in EK_tmp %} + {% if K.EbuildId.EbuildId == E.EbuildId.EbuildId and K.KeywordId.Keyword != '*' %} + {% if K.Status == 'Stable' %}<span class="label label-success">{{ K.KeywordId.Keyword }}</span>{% endif %} + {% if K.Status == 'Unstable' %}<span class="label label-warning">{{ K.KeywordId.Keyword }}</span>{% endif %} + {% if K.Status == 'Negative' %}{{ K.KeywordId.Keyword }}{% endif %} + {% endif %} + {% endfor %} + </td> + </tr> + {% endfor %} + </table> + </div> + {% if PR %} + <a class="btn btn-warning btn-xs" href="/repoman/{{P.PackageId.PackageId }}/">Repoman</a> + {% endif %} +</div> +{% endblock %}
\ No newline at end of file diff --git a/python/templates/pages/packages/index.html b/python/templates/pages/packages/index.html new file mode 100644 index 0000000..7139c87 --- /dev/null +++ b/python/templates/pages/packages/index.html @@ -0,0 +1,28 @@ +{% extends "layout/base.html" %} +{% block content %} +<div class="row"> +<h2>Categories</h2> + <div class="col-xs-8 col-md-4"> + {% for CM in CM_tmp %} + <table class="table table-striped frontpage-table"> + <tr> + <td class="frontpage-table-package-atom"> + <a href="/categories/{{ CM.CategoryId }}/" title="{{ CM.Category }}">{{CM.Category }}</a> + </td> + <td> + <p title="{{ CM.Descriptions }}">{{ CM.Descriptions }}</p> + <p title="{% for P in CM.Packages %}{{ CM.Category}}/{{ P }}{% endfor %}">Packages</p> + </td> + </tr> + </table> + {% if forloop.last %} + </div> + {% else %} + {% if forloop.counter|divisibleby:"2" %} + </div><div class="col-xs-8 col-md-4"> + {% endif %} + {% endif %} + {% endfor %} +</div> + +{% endblock %}
\ No newline at end of file diff --git a/python/templates/pages/projects/add/index.html b/python/templates/pages/projects/add/index.html new file mode 100644 index 0000000..ec46b8d --- /dev/null +++ b/python/templates/pages/projects/add/index.html @@ -0,0 +1,8 @@ +{% extends "layout/base.html" %} +{% block content %} +<form action="{{ Project.uuid }}" method="post"> + {% csrf_token %} + {{ Form }} + <input type="submit" value="Submit"> +</form> +{% endblock %} diff --git a/python/templates/pages/projects/detail/index.html b/python/templates/pages/projects/detail/index.html new file mode 100644 index 0000000..afee9d5 --- /dev/null +++ b/python/templates/pages/projects/detail/index.html @@ -0,0 +1,4 @@ +{% extends "layout/base.html" %} +{% block content %} +<p>Hej</p> +{% endblock %} diff --git a/python/templates/pages/projects/index.html b/python/templates/pages/projects/index.html new file mode 100644 index 0000000..2edf849 --- /dev/null +++ b/python/templates/pages/projects/index.html @@ -0,0 +1,19 @@ +{% extends "layout/base.html" %} +{% block content %} +<div class="panel panel-default"> + <div class="table-responsive"> + <table class="table table-striped"> + <table class="table table-striped frontpage-table"> + {% for project in Projects %} + <tr> + <td class="frontpage-table-project-atom"><a href="{% url 'projects:detail' project.uuid %}" title="{{ project.title }}">{{ project.title }}</a></td> + <td><p title="{{ project.description }}">{{ project.description }}</p> + <td class="text-right"> + </td></td> + </tr> + {% endfor %} +</table> + </table> + </div> +</div> +{% endblock %} diff --git a/python/templates/pages/projects/repos/index.html b/python/templates/pages/projects/repos/index.html new file mode 100644 index 0000000..bc349da --- /dev/null +++ b/python/templates/pages/projects/repos/index.html @@ -0,0 +1,31 @@ +{% extends "layout/base.html" %} +{% block content %} +<div class="panel panel-default"> + <div class="table-responsive"> + <table class="table table-striped"> + <table class="table table-striped frontpage-table"> + {% for project in Projects %} + <tr> + <td class="frontpage-table-project-atom"><a href="{% url 'projects:detail' project.uuid %}" title="{{ project.title }}">{{ project.title }}</a></td> + <td><p title="{{ project.description }}">{{ project.description }}</p> + <td class="text-right"> + </td></td> + </tr> + {% endfor %} +</table> + </table> +<table class="table table-striped"> + <table class="table table-striped frontpage-table"> + {% for project in Projects %} + <tr> + <td class="frontpage-table-project-atom"><a href="{% url 'projects:detail' project.uuid %}" title="{{ project.title }}">{{ project.title }}</a></td> + <td><p title="{{ project.description }}">{{ project.description }}</p> + <td class="text-right"> + </td></td> + </tr> + {% endfor %} +</table> + </table> + </div> +</div> +{% endblock %} diff --git a/python/templates/pages/www/index.html b/python/templates/pages/www/index.html new file mode 100644 index 0000000..a8fdf61 --- /dev/null +++ b/python/templates/pages/www/index.html @@ -0,0 +1,49 @@ +{% extends "layout/base.html" %} +{% block content %} +{% include "includes/container/start" %} +<div class="row"> + <div class="col-xs-12 col-sm-8 col-md-9"> + <p> + Welcome to Gentoo . + </p> + </div> + <div class="col-xs-12 col-sm-4 col-md-3 buttons"> + <a href="/get-started/about/" class="btn btn-default btn-block">Learn more</a> + <a href="/get-started/" class="btn btn-primary btn-block"><i class="fa fa-fw fa-rocket"></i> Get started now</a> + </div> +</div> +{% include "includes/container/end" %} +<section id="news"> +{% include "includes/frontpage/news" %} +</section> + +<div class="news-more"> + <a href="/news" class="btn btn-xs">All news items <span class="fa fa-fw fa-chevron-right"></span></a> +<hr> +</div> + +<div class="row"> + <div class="col-xs-12 col-md-6"> + <h2>New Packages <small>more at the <a href="/new_packages/">New Packages</a></small></h2> + {% include "includes/frontpage/new_packages" %} + </div> + <div class="col-xs-12 col-md-6"> + <h2>New Logs <small>more at the <a href="/new_logs/">New Logs</a></small></h2> + {% include "includes/frontpage/new_logs" %} + </div> +</div> + +<div class="row"> + <div class="col-xs-12 col-md-6"> + <h2>New Build Requests <small>more at the <a href="/new_build_req">New Build Requests</a></small></h2> + {% include "includes/frontpage/new_build_req" %} + </div> + <div class="col-xs-12 col-md-6"> + <h2>New Repoman or QA's <small>on the <a href="/new/repomanqa/">New Repoman or QA's</a></small></h2> + {% include "includes/frontpage/new_repoman_qa" %} + </div> +</div> + +<hr> + +{% endblock %} |