mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:39:02 +02:00

Now Recipes and Maintainers page can be access by Release and Milestone, to support this a url namespace was add also update views/templates handle new URL's. rrs/models.py: Add support model for store Release also foregin key in Milestone. rrs/admin.py: Add admin site for Release model. rrs/fixtures/initial_data.json: Add initial data with Release/Milestone relation. rrs/{views, urls}.py: Add support for handle Release/Milestone. templates/rrs: Update to handle new URL's. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
30 lines
1005 B
Python
30 lines
1005 B
Python
from django.conf.urls import patterns, include, url
|
|
|
|
from rrs.models import Release, Milestone
|
|
from rrs.views import RecipeListView, RecipeDetailView, MaintainerListView
|
|
|
|
urlpatterns = patterns('',
|
|
url(r'^$', redirect_to,
|
|
{'url' :
|
|
reverse_lazy('recipes',
|
|
args = (
|
|
Release.get_current().name,
|
|
Milestone.get_current(Release.get_current()).name,
|
|
)
|
|
)
|
|
},
|
|
name='frontpage'),
|
|
url(r'^recipes/(?P<release_name>.*)/(?P<milestone_name>.*)/$',
|
|
RecipeListView.as_view(
|
|
template_name='rrs/recipes.html'),
|
|
name='recipes'),
|
|
url(r'^recipedetail/(?P<pk>\d+)/$',
|
|
RecipeDetailView.as_view(
|
|
template_name='rrs/recipedetail.html'),
|
|
name='recipedetail'),
|
|
url(r'^maintainers/(?P<release_name>.*)/(?P<milestone_name>.*)/$',
|
|
MaintainerListView.as_view(
|
|
template_name='rrs/maintainers.html'),
|
|
name="maintainers"),
|
|
)
|