mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
Initial version of recipe detail page
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
05ceb17487
commit
fd600fb716
|
@ -173,7 +173,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for recipe in layeritem.sorted_recipes %}
|
{% for recipe in layeritem.sorted_recipes %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ recipe.vcs_web_url }}">{{ recipe.name }}</a></td>
|
<td><a href="{% url recipe recipe.id %}">{{ recipe.name }}</a></td>
|
||||||
<td>{{ recipe.pv }}</td>
|
<td>{{ recipe.pv }}</td>
|
||||||
<td>{{ recipe.short_desc }}</td>
|
<td>{{ recipe.short_desc }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
84
layerindex/recipedetail.html
Normal file
84
layerindex/recipedetail.html
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
{% comment %}
|
||||||
|
|
||||||
|
layerindex-web - recipe detail page template
|
||||||
|
|
||||||
|
Copyright (C) 2013 Intel Corporation
|
||||||
|
Licensed under the MIT license, see COPYING.MIT for details
|
||||||
|
|
||||||
|
{% endcomment %}
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
{% block title %}OpenEmbedded metadata index - {{ recipe.pn }}{% endblock %}
|
||||||
|
-->
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% autoescape on %}
|
||||||
|
|
||||||
|
<div class="row-fluid">
|
||||||
|
|
||||||
|
<div class="span9 offset1">
|
||||||
|
|
||||||
|
<ul class="nav nav-tabs">
|
||||||
|
<li>
|
||||||
|
<a href="{% url layer_list %}">Layer index</a>
|
||||||
|
</li>
|
||||||
|
<li><a href="{% url recipe_search %}">Recipe index</a></li>
|
||||||
|
<li class="active"><a href="#">Recipe</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<table class="table table-striped table-bordered">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<td>{{ recipe.name }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Version</th>
|
||||||
|
<td>{{ recipe.pv }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Summary</th>
|
||||||
|
<td>{{ recipe.summary }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Description</th>
|
||||||
|
<td>{{ recipe.description }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Section</th>
|
||||||
|
<td>{{ recipe.section }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>License</th>
|
||||||
|
<td>{{ recipe.license }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Homepage</th>
|
||||||
|
<td>{% if recipe.homepage %}<a href="{{ recipe.homepage }}">{{ recipe.homepage }}</a>{% endif %}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Recipe file</th>
|
||||||
|
<td>
|
||||||
|
{% if recipe.vcs_web_url %}
|
||||||
|
<a href="{{ recipe.vcs_web_url }}">{{ recipe.full_path }}</a>
|
||||||
|
{% else %}
|
||||||
|
{{ recipe.full_path }}
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Layer</th>
|
||||||
|
<td><a href="{% url layer_item recipe.layer.name %}">{{ recipe.layer.name }}</a></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% endautoescape %}
|
||||||
|
|
||||||
|
{% endblock %}
|
|
@ -53,7 +53,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for recipe in recipe_list %}
|
{% for recipe in recipe_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ recipe.vcs_web_url }}">{{ recipe.name }}</a></td>
|
<td><a href="{% url recipe recipe.id %}">{{ recipe.name }}</a></td>
|
||||||
<td>{{ recipe.pv }}</td>
|
<td>{{ recipe.pv }}</td>
|
||||||
<td>{{ recipe.short_desc }}</td>
|
<td>{{ recipe.short_desc }}</td>
|
||||||
<td><a href="{% url layer_item recipe.layer.name %}">{{ recipe.layer.name }}</a></td>
|
<td><a href="{% url layer_item recipe.layer.name %}">{{ recipe.layer.name }}</a></td>
|
||||||
|
|
|
@ -32,6 +32,11 @@ urlpatterns = patterns('',
|
||||||
slug_field = 'name',
|
slug_field = 'name',
|
||||||
template_name='layerindex/detail.html'),
|
template_name='layerindex/detail.html'),
|
||||||
name='layer_item'),
|
name='layer_item'),
|
||||||
|
url(r'^recipe/(?P<pk>[-\w]+)/$',
|
||||||
|
DetailView.as_view(
|
||||||
|
model=Recipe,
|
||||||
|
template_name='layerindex/recipedetail.html'),
|
||||||
|
name='recipe'),
|
||||||
url(r'^layer/(?P<name>[-\w]+)/publish/$', 'layerindex.views.publish', name="publish"),
|
url(r'^layer/(?P<name>[-\w]+)/publish/$', 'layerindex.views.publish', name="publish"),
|
||||||
url(r'^raw/recipes.txt$',
|
url(r'^raw/recipes.txt$',
|
||||||
PlainTextListView.as_view(
|
PlainTextListView.as_view(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user