Skip to content

Commit

Permalink
fix: rename pastebin to blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
rancoud committed Jan 7, 2024
1 parent 7ef5fa7 commit a0d6387
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/views/www/pages/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<div class="block__element block__element--home">
<h2 class="block__title">Last public pasted <span class="block__title--emphasis">blueprints</span></h2>
<div>
<a class="block__link block__link--home" href="/last-blueprints/">Last pastebins</a>
<a class="block__link block__link--home" href="/last-blueprints/">Last blueprints</a>
<a class="block__link block__link--home" href="/search/">Advanced Search</a>
<a class="block__link block__link--home" href="/most-discussed-blueprints/">Most discussed</a>
<a class="block__link block__link--home" href="/type/material/">Material blueprint</a>
Expand All @@ -136,4 +136,4 @@
<?php include Application::getFolder('VIEWS') . 'www/parts/account_popins.php'; ?>

<script src="/site.js"></script>
</body>
</body>
2 changes: 1 addition & 1 deletion app/views/www/parts/nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<ul class="nav__center-side-container" id="nav__center-side-container">
<li>
<a class="nav__link nav__link--add-margin-right<?php echo ($data['navbar_current_page'] === 'home') ? ' nav__link--active' : ''; ?>" href="/">Create pastebin</a>
<a class="nav__link nav__link--add-margin-right<?php echo ($data['navbar_current_page'] === 'home') ? ' nav__link--active' : ''; ?>" href="/">Create blueprint</a>
</li>
<li>
<a class="nav__link<?php echo ($data['navbar_current_page'] === 'blueprints_list' || $data['navbar_current_page'] === 'blueprint') ? ' nav__link--active' : ''; ?>" href="/type/blueprint/">Blueprints</a>
Expand Down
6 changes: 3 additions & 3 deletions tests/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ protected function doTestNavBarHasLinkHomeActive(Response $response): void
$body = $this->getContentBetweenTags($body, '<header>', '</header>');
$body = $this->getContentBetweenTags($body, '<nav class="nav">', '</nav>');
$body = $this->getContentBetweenTags($body, '<ul class="nav__center-side-container" id="nav__center-side-container">', '</ul>');
$linkHome = $this->getContentBetweenTags($body, '<a', '>Create pastebin</a>');
$linkBlueprints = $this->getContentBetweenTags($body, 'pastebin</a>', '>Blueprints</a>');
$linkHome = $this->getContentBetweenTags($body, '<a', '>Create blueprint</a>');
$linkBlueprints = $this->getContentBetweenTags($body, 'blueprint</a>', '>Blueprints</a>');

static::assertStringContainsString('nav__link--active', $linkHome);
static::assertStringNotContainsString('nav__link--active', $linkBlueprints);
Expand All @@ -319,7 +319,7 @@ protected function doTestNavBarHasLinkBlueprintActive(Response $response): void
$body = $this->getContentBetweenTags($body, '<header>', '</header>');
$body = $this->getContentBetweenTags($body, '<nav class="nav">', '</nav>');
$body = $this->getContentBetweenTags($body, '<ul class="nav__center-side-container" id="nav__center-side-container">', '</ul>');
$linkHome = $this->getContentBetweenTags($body, '<a', '>Create pastebin</a>');
$linkHome = $this->getContentBetweenTags($body, '<a', '>Create blueprint</a>');
$linkBlueprints = $this->getContentBetweenTags($body, '<a', '>Blueprints</a>');

static::assertStringNotContainsString('nav__link--active', $linkHome);
Expand Down
2 changes: 1 addition & 1 deletion tests/www/Home/HomeLastBlueprintsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected function getHTMLHeaderListBlueprints(): string
<div class="block__element block__element--home">
<h2 class="block__title">Last public pasted <span class="block__title--emphasis">blueprints</span></h2>
<div>
<a class="block__link block__link--home" href="/last-blueprints/">Last pastebins</a>
<a class="block__link block__link--home" href="/last-blueprints/">Last blueprints</a>
<a class="block__link block__link--home" href="/search/">Advanced Search</a>
<a class="block__link block__link--home" href="/most-discussed-blueprints/">Most discussed</a>
<a class="block__link block__link--home" href="/type/material/">Material blueprint</a>
Expand Down

0 comments on commit a0d6387

Please sign in to comment.