Skip to content

Commit

Permalink
remove about page and its tests (#1772)
Browse files Browse the repository at this point in the history
* remove about page and its tests

* remove from critical-css

* More stuff

* fix tests

---------

Co-authored-by: Saeed Moghadamzadeh <[email protected]>
Co-authored-by: nlisgo <[email protected]>
  • Loading branch information
3 people authored May 10, 2023
1 parent be4dda7 commit 7746a1d
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 919 deletions.
6 changes: 0 additions & 6 deletions app/Resources/views/about-people.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@

{{ render_pattern(contentHeader) }}

<div class="wrapper">

{{ render_pattern(menuLink) }}

</div>

{% include 'calls-to-action.html.twig' %}

{% embed 'grid/listing-one-column.html.twig' with {fullWidth: true} %}
Expand Down
39 changes: 0 additions & 39 deletions app/Resources/views/about.html.twig

This file was deleted.

30 changes: 4 additions & 26 deletions app/config/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,40 +21,18 @@ home:

about:
path: /about
defaults:
_controller: AppBundle:About:about

about-aims-scope:
path: /about/aims-scope
defaults:
_controller: AppBundle:About:aimsScope

about-research-culture:
path: /about/research-culture
defaults:
_controller: AppBundle:About:researchCulture

about-technology:
path: /about/technology
defaults:
_controller: AppBundle:About:technology

about-peer-review:
path: /about/peer-review
defaults:
_controller: AppBundle:About:peerReview
about-pubpub:
path: /about/{type}
requirements:
type: '(aims-scope|research-culture|technology|peer-review|publishing-with-elife)'

about-people:
path: /about/people/{type}
defaults:
_controller: AppBundle:About:people
type: ''

about-publishing-with-elife:
path: /about/publishing-with-elife
defaults:
_controller: AppBundle:About:publishingWithElife

alerts:
path: /alerts
defaults:
Expand Down
1 change: 0 additions & 1 deletion critical-css.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"default": "/resources",
"about": "/about",
"article": "/articles/00569",
"archive-month": "/archive/2016/march",
"landing": "/subjects/cancer-biology",
Expand Down
251 changes: 1 addition & 250 deletions src/Controller/AboutController.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Controller/ArticlesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ private function createFirstPage(Request $request, string $id, array $arguments)
$first = true;
$relatedLinks = [];

$relatedLinks[] = new Link('About eLife assessments', $this->get('router')->generate('about-peer-review'));
$relatedLinks[] = new Link('About eLife assessments', $this->get('router')->generate('about-pubpub', ['type'=> 'peer-review']));

$parts[] = ArticleSection::collapsible(
'elife-assessment',
Expand Down Expand Up @@ -344,7 +344,7 @@ private function createFirstPage(Request $request, string $id, array $arguments)
$relatedLinks[] = new Link('Reviews on Sciety', $item->getEditorEvaluationScietyUri());
}

$relatedLinks[] = new Link('eLife\'s review process', $this->get('router')->generate('about-peer-review'));
$relatedLinks[] = new Link('eLife\'s review process', $this->get('router')->generate('about-pubpub', ['type'=> 'peer-review']));

$parts[] = ArticleSection::collapsible(
$item->getEditorEvaluation()->getId() ?? 'editor-evaluation',
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/CommunityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private function createFirstPage(array $arguments) : Response
'Community',
$this->get('elife.journal.view_model.factory.content_header_image')->forLocalFile('community'),
'The eLife community is working to help address some of the pressures on early-career scientists in a number of ways.
Learn more about <a href="'.$this->get('router')->generate('about-research-culture').'">our work</a> and <a href="'.$this->get('router')->generate('about-people', ['type' => 'early-career']).'">advisory group</a>, <a href="https://crm.elifesciences.org/crm/community-news">sign up for our monthly news</a>,
Learn more about <a href="'.$this->get('router')->generate('about-pubpub', ['type' => 'research-culture']).'">our work</a> and <a href="'.$this->get('router')->generate('about-people', ['type' => 'early-career']).'">advisory group</a>, <a href="https://crm.elifesciences.org/crm/community-news">sign up for our monthly news</a>,
follow us on <a href="https://www.twitter.com/elifecommunity">Twitter</a>, and explore recent activities below.'
);

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/LabsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private function createFirstPage(array $arguments) : Response
'eLife Labs',
$this->get('elife.journal.view_model.factory.content_header_image')->forLocalFile('labs'),
'Exploring open-source solutions at the intersection of research and technology.
Learn more about <a href="'.$this->get('router')->generate('about-technology').'">innovation at eLife</a>, follow us on <a href="https://twitter.com/eLifeInnovation">Twitter</a>, or sign up for our <a href="https://crm.elifesciences.org/crm/tech-news?utm_source=Labs-home&utm_medium=website&utm_campaign=technews">technology and innovation newsletter</a>.'
Learn more about <a href="'.$this->get('router')->generate('about-pubpub', ['type'=> 'technology']).'">innovation at eLife</a>, follow us on <a href="https://twitter.com/eLifeInnovation">Twitter</a>, or sign up for our <a href="https://crm.elifesciences.org/crm/tech-news?utm_source=Labs-home&utm_medium=website&utm_campaign=technews">technology and innovation newsletter</a>.'
);

return new Response($this->get('templating')->render('::labs.html.twig', $arguments));
Expand Down
185 changes: 0 additions & 185 deletions test/Controller/AboutAimsScopeControllerTest.php

This file was deleted.

55 changes: 0 additions & 55 deletions test/Controller/AboutControllerTest.php

This file was deleted.

Loading

0 comments on commit 7746a1d

Please sign in to comment.