rename page to article

This commit is contained in:
ghost 2023-10-10 14:43:44 +03:00
parent 649838d4ee
commit c747166a30
43 changed files with 597 additions and 597 deletions

View file

@ -1,11 +1,11 @@
{% extends 'default/layout.html.twig' %}
{% block title %}{{'Submit page'|trans }} - {{ name }}{% endblock %}
{% block title %}{{'Submit article'|trans }} - {{ name }}{% endblock %}
{% block main_content %}
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night">
<div class="margin-b-24-px padding-b-16-px border-bottom-default">
<h1>{{'Submit page'|trans }}</h1>
<h1>{{'Submit article'|trans }}</h1>
</div>
<form name="submit" method="post" enctype="multipart/form-data" action="{{ path('page_submit') }}">
<form name="submit" method="post" enctype="multipart/form-data" action="{{ path('article_submit') }}">
<div class="margin-b-16-px">
<label for="locale">
{{'Content language'|trans }}

View file

@ -6,10 +6,10 @@
{% else %}
<option value="torrent">{{ 'Torrents' | trans }}</option>
{% endif %}
{% if type == 'page' %}
<option value="page" selected="selected">{{ 'Pages' | trans }}</option>
{% if type == 'article' %}
<option value="article" selected="selected">{{ 'Articles' | trans }}</option>
{% else %}
<option value="page">{{ 'Pages' | trans }}</option>
<option value="article">{{ 'Articles' | trans }}</option>
{% endif %}
</select>
<input {% if query %}class="button-green"{% endif %} type="submit" value="{{ 'Search' | trans }}" />

View file

@ -122,7 +122,7 @@
<div class="text-color-night margin-y-16-px">
{{ '* share new torrent file to change it' | trans }}
</div>
<form name="submit" method="get" action="{{ path('page_submit') }}">
<form name="submit" method="get" action="{{ path('article_submit') }}">
<button class="button-green margin-y-8-px" type="submit">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3v-3z"/>

View file

@ -302,15 +302,15 @@
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
</svg>
</a>
{{ 'Pages'|trans }}
{{ 'Articles'|trans }}
<div class="padding-b-8-px border-bottom-default"></div>
<div class="padding-y-16-px text-left">
{% for page in torrent.pages %}
{% for article in torrent.articles %}
<div>
{{ page }}
{{ article }}
</div>
{% endfor %}
<form name="pages" method="post" action="{{ path('page_submit') }}">
<form name="articles" method="post" action="{{ path('article_submit') }}">
<input type="hidden" name="torrentId" value="{{ torrent.id }}" />
<button type="submit" class="button-green">
<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" fill="currentColor" viewBox="0 0 16 16">

View file

@ -25,14 +25,14 @@
</svg>
</a>
{% endif %}
{% if route == 'page_submit' or route == 'torrent_submit' %}
{% if route == 'article_submit' or route == 'torrent_submit' %}
<span class="padding-8-px display-block cursor-default" title="{{ 'Submit' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3v-3z"/>
</svg>
</span>
{% else %}
<a class="padding-8-px display-block text-color-night" href="{{ path('page_submit') }}" title="{{ 'Submit' | trans }}">
<a class="padding-8-px display-block text-color-night" href="{{ path('article_submit') }}" title="{{ 'Submit' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3v-3z"/>
</svg>