Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Comptoir
Comptoir-srv
Commits
5fe057e4
Commit
5fe057e4
authored
May 26, 2020
by
Fabrice Gangler
🎨
Browse files
FIX: change software placeholder image
Refs:
#900
parent
90a63935
Pipeline
#9762
passed with stage
in 3 minutes and 39 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/Template/Element/Softwares/overview.ctp
View file @
5fe057e4
<div class="col-sm-6 col-md-4 col-lg-4 hidden-xs">
<div class="size-logo-overview">
<?php if (!$this->Software->hasLogo($software) || is_null($software->photo) || empty($software->photo)) : ?>
<?= $this->Html->link($this->Html->image("logos/Softwarelogo_placeholder.jpg",
["alt" => $software->softwarename, "class" => "img-responsive"]),
"/$selectedLanguage/softwares/$software->id",
['escape' => false]) ?>
<?= $this->Html->image("logos/placeholder_software.svg",
["alt" => $software->softwarename, "class" => "img-responsive img-placeholder"]) ?>
<?php else : ?>
<?= $this->Html->link($this->Html->image($software->logo_directory . DS . $software->photo,
["alt" => $software->softwarename, "class" => "img-responsive"]),
...
...
src/View/Helper/SoftwareHelper.php
View file @
5fe057e4
...
...
@@ -116,7 +116,7 @@ class SoftwareHelper extends ListItemHelper
$this
->
Html
->
link
(
$this
->
Html
->
image
(
"logos/
Softwarelogo_placeholder.jp
g"
,
"logos/
placeholder_software.sv
g"
,
[
"alt"
=>
__d
(
"Softwares"
,
"Go to the
{
0
}
's page"
,
$software
->
softwarename
),
"class"
=>
"img-responsive"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment