Commit 8e925b04 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Drop applicationDevelopment page

Currently it is not very useful, so unless there are plans to improve it
it might be better to just redirect directly to the invent page of the
application.

The "Get Involved" button is redundant, since we already have it in the
header of the website. The 'git clone' instruction is going to be
available on invent anyway.
parent 7c801037
Pipeline #33710 canceled with stage
......@@ -111,28 +111,4 @@ class MainController extends AbstractController
'translations' => $this->getParameter('app.translations'),
]);
}
/**
* @Route("/{category}/{application}/development", requirements={"_locale": "%app.locales%"}, defaults={"_locale": "en"})
* @Route("/{_locale}/{category}/{application}/development", name="app_main_application_dev_intl", requirements={"_locale": "%app.locales%"})
* @param Request $request
* @param string $_locale
* @param string $category
* @param string $application
* @return Response
*/
public function applicationDevelopment(Request $request, string $_locale, string $category, string $application): Response
{
if ($request->query->get('site_locale')) {
return $this->redirectToRoute('app_main_application_dev_intl', ['_locale' => $request->query->get('site_locale'), 'category' => $category, 'application' => $application]);
}
$application = AppData::fromName($application);
return $this->render('main/applicationDevelopment.html.twig', [
'application' => $application,
'category' => $category,
'locale' => $_locale,
'translations' => $this->getParameter('app.translations'),
]);
}
}
......@@ -314,12 +314,8 @@ AppStream application stores. You can also use your distribution's package manag
</div>
{% endif %}
<div class="mt-3">
<a href="{{ path('app_main_application_dev_intl', {
'_locale': locale,
'application': application.id,
'category': category
}) }}">
{% trans %}Development information{% endtrans %}
<a href="https://invent.kde.org/{{ application.repository }}">
{% trans %}Browse %name% source code online{% endtrans %}
</a>
</div>
</aside>
......
{#
SPDX-FileCopyrightText: 2020 Carl Schwan <carl@carlschwan.eu>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% extends "base.html.twig" %}
{% set name = application.name | l10n(locale) %}
{% block title %}{{ name }} - {% trans %}Development information{% endtrans %}{% endblock %}
{% block description %}{{ application.summary | l10n(locale) }}{% endblock %}
{% block image %}{% if application.screenshots | length > 0 %}{{ application.screenshots[0].sourceImage }}{% else %}https://kde.org/products/apps.png{% endif %}{% endblock %}
{% block canonical %}https://kde.org{{ path('app_main_application_dev_intl', {'_locale': locale, 'category': category, 'application': application.id}) }}{% endblock %}
{% block hreflang %}
<link rel="alternate" href="https://kde.org{{ path('app_main_application_dev_intl', {'_locale': "en", 'category': category | lower, 'application' : application.id }) }}" hreflang="en" />
{% for translation in translations %}
<link rel="alternate" href="https://kde.org{{ path('app_main_application_dev_intl', {'_locale': translation, 'category': category | lower, 'application' : application.id }) }}" hreflang="{{ translation }}" />
{% endfor %}
{% endblock %}
{% block body %}
<main>
<div class="application-header pt-2 pb-2">
<div class="container d-flex">
<img src="{{ asset('icons/' ~ application.icon) }}" alt="{% trans %}%name% Icon{% endtrans %}"
width="64" height="64" class="mr-2"/>
<div>
<h1 style="font-size: 1.5rem">
<a href="{{ path('app_main_index', {'_locale': locale}) }}">{% trans %}KDE's Applications{% endtrans %}</a>
{{ name }}
</h1>
<a href="{{ path('app_main_category_intl', {'_locale': locale, 'category': category}) }}">
{{ application.primaryCategory | trans }}
</a>
</div>
<a class="noblefir ml-auto align-self-center"
id="install-button"
href="https://community.kde.org/Get_Involved">
<i class="icon icon_cloud-download" style="font-size: 16px"></i>
<span id="install-msg">{% trans %}Get Involved{% endtrans %}</span>
</a>
</div>
</div>
<style>
.swiper-container, .swiper-slide img, .screenshot img {
height: 50vw;
min-height: 300px;
max-height: 500px;
}
.swiper-pagination-bullet {
width: 12px;
height: 12px;
}
.swiper-slide {
flex-shrink: initial;
}
</style>
<div class="container" style="overflow: hidden;">
<h2>{% trans %}Source Code Repository{% endtrans %}</h2>
<div>
<a href="https://invent.kde.org/{{ application.repository }}">
{% trans %}Browse %name% source code online{% endtrans %}
</a>
</div>
<code>git clone https://invent.kde.org/{{ application.repository }}</code>
</div>
</main>
{% endblock %}
{% block donation %}#{{ name }}{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment