mirror of
				https://gitlab.crans.org/mediatek/med.git
				synced 2025-11-04 15:22:27 +01:00 
			
		
		
		
	Add find medium link in explore dropdown
This commit is contained in:
		@@ -11,5 +11,5 @@ app_name = 'media'
 | 
				
			|||||||
urlpatterns = [
 | 
					urlpatterns = [
 | 
				
			||||||
    url(r'^retour_emprunt/(?P<empruntid>[0-9]+)$', views.retour_emprunt,
 | 
					    url(r'^retour_emprunt/(?P<empruntid>[0-9]+)$', views.retour_emprunt,
 | 
				
			||||||
        name='retour-emprunt'),
 | 
					        name='retour-emprunt'),
 | 
				
			||||||
    path('find/', views.FindMediumView.as_view()),
 | 
					    path('find/', views.FindMediumView.as_view(), name="find"),
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,6 +30,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
 | 
				
			|||||||
                <span class="dropdown">
 | 
					                <span class="dropdown">
 | 
				
			||||||
                        <a href="{% url 'admin:index' %}">{% trans 'Explore database' %}</a>
 | 
					                        <a href="{% url 'admin:index' %}">{% trans 'Explore database' %}</a>
 | 
				
			||||||
                        <span class="dropdown-content">
 | 
					                        <span class="dropdown-content">
 | 
				
			||||||
 | 
					                            <a href="{% url "media:find" %}">Recherche ...</a>
 | 
				
			||||||
                            {% for app in available_apps %}
 | 
					                            {% for app in available_apps %}
 | 
				
			||||||
                                {% for model in app.models %}
 | 
					                                {% for model in app.models %}
 | 
				
			||||||
                                    {% if model.admin_url %}
 | 
					                                    {% if model.admin_url %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user