Skip to content
Snippets Groups Projects
Commit 5d5eb40a authored by Sébastien Helleu's avatar Sébastien Helleu
Browse files

Remove legacy scripts (for WeeChat <= 0.2.6)

parent d7610bde
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -35,20 +35,20 @@ from weechat.scripts.views import (
 
urlpatterns = [
url(r'^$', view_scripts, name='scripts'),
url(r'^(?P<api>(legacy|stable))/$', view_scripts, name='scripts_api'),
url(r'^(?P<api>(legacy|stable))/'
url(r'^(?P<api>(stable))/$', view_scripts, name='scripts_api'),
url(r'^(?P<api>(stable))/'
r'(?P<filter_name>(tag|language|license|author))/'
r'(?P<filter_value>(.*))/$',
view_scripts, name='scripts_api_filter'),
url(r'^(?P<api>(legacy|stable))/sort/(?P<sort_key>(name|language|license|'
url(r'^(?P<api>(stable))/sort/(?P<sort_key>(name|language|license|'
r'min_weechat|max_weechat|author|added|updated))/$',
view_scripts, name='scripts_api_sort'),
url(r'^source/(?P<scriptid>\d+)/$', view_script_source,
name='scripts_source_id'),
url(r'^source/(?P<api>(legacy|stable))/(?P<scriptname>[a-zA-Z0-9_.-]+)'
url(r'^source/(?P<api>(stable))/(?P<scriptname>[a-zA-Z0-9_.-]+)'
r'\.html/$',
view_script_source, name='scripts_source_api_name_html'),
url(r'^source/(?P<api>(legacy|stable))/(?P<scriptname>[a-zA-Z0-9_.-]+)/$',
url(r'^source/(?P<api>(stable))/(?P<scriptname>[a-zA-Z0-9_.-]+)/$',
view_script_source, name='scripts_source_api_name'),
url(r'^source/(?P<scriptname>[a-zA-Z0-9_.-]+)\.html/$',
view_script_source, {'api': 'stable'},
Loading
Loading
Loading
Loading
@@ -24,13 +24,7 @@
<div class="scriptsearch">
<div class="search">
<span class="links">
{% if api == "legacy" %}
<a href="{% url 'scripts_api' 'stable' %}">{% trans "Display scripts for stable API (&ge; 0.3.0)" %}</a>
{% else %}
<a href="{% url 'scripts_api' 'legacy' %}">{% trans "Display scripts for legacy API (&le; 0.2.6)" %}</a>
{% endif %}
&nbsp; | &nbsp;
{% trans "List:" %}
{% trans "List:" %}
<a href="/files/plugins.xml">XML</a> (<a href="/files/plugins.xml.gz">gz</a>),
<a href="/files/plugins.json">JSON</a> (<a href="/files/plugins.json.gz">gz</a>)
</span>
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment