?>
<div class="container-fluid" id="page-wrapper">
<div class="row">
- <div class="col-xs-offset-1 col-xs-10 col-sm-offset-1 col-sm-10 col-md-offset-1 col-md-10 col-lg-offset-1 col-lg-10 main">
+ <div
+ class="col-xs-offset-1 col-xs-10 col-sm-offset-1 col-sm-10 col-md-offset-1 col-md-10 col-lg-offset-1 col-lg-10 main">
<div class="row">
+ <section>
+ <div class="overview-entity ">
+ <div class=" col-xs-12 col-sm-4 col-md-4 col-lg-4 hidden-xs">
+ <?php if (empty ($software->logo_directory) || empty($software->photo)) : ?>
+ <?= $this->Html->link($this->Html->image("logos/Softwarelogo_placeholder.jpg",
+ ["alt" => $software->softwarename, "class" => "img-responsive size-logo-overview"]),
+ ['controller' => 'Softwares', 'action' => 'view', $software->id],
+ ['escape' => false]) ?>
+ <?php else : ?>
+ <?= $this->Html->link($this->Html->image(COMPTOIR_SRV_URL . $software->logo_directory . DS . $software->photo,
+ ["alt" => $software->softwarename, "class" => "img-responsive size-logo-overview"]),
+ "#",// url of the entity web site.
+ ['escape' => false]) ?>
+ <?php endif; ?>
+ </div>
- <div class="overview-entity ">
- <div class=" col-xs-12 col-sm-4 col-md-4 col-lg-4 hidden-xs">
- <?php if (empty ($software->logo_directory) || empty($software->photo)) : ?>
- <?= $this->Html->link($this->Html->image("logos/Softwarelogo_placeholder.jpg",
- ["alt" => $software->softwarename, "class" => "img-responsive size-logo-overview"]),
- ['controller' => 'Softwares', 'action' => 'view', $software->id],
- ['escape' => false]) ?>
- <?php else : ?>
- <?= $this->Html->link($this->Html->image(COMPTOIR_SRV_URL . $software->logo_directory . DS . $software->photo,
- ["alt" => $software->softwarename, "class" => "img-responsive size-logo-overview"]),
- "#",// url of the entity web site.
- ['escape' => false]) ?>
- <?php endif; ?>
- </div>
-
- <div class="metric-score col-xs-12 col-sm-7 col-md-7 col-lg-7">
- <ul class="list-unstyled">
- <li>
- <div class="align">
- <h1>
- <?= $software->softwarename ?>
- </h1>
- <span>
- <?= $this->Score->note(isset($software->softwares_statistic->score) ? $software->softwares_statistic->score : null, ['title' => __d("ElementProject", "The score is {0}",isset($software->softwares_statistic->score) ? round($software->softwares_statistic->score,0) : "NA")]) ?>
+ <div class="metric-score col-xs-12 col-sm-7 col-md-7 col-lg-7">
+ <ul class="list-unstyled">
+ <li>
+ <div class="align">
+ <h1>
+ <?= $software->softwarename ?>
+ </h1>
+ <span>
+ <?= $this->Score->note(isset($software->softwares_statistic->score) ? $software->softwares_statistic->score : null, ['title' => __d("ElementProject", "The score is {0}", isset($software->softwares_statistic->score) ? round($software->softwares_statistic->score, 0) : "NA")]) ?>
</span>
- </div>
- </li>
- <li>
- <?= $this->Html->link($software->url_repository,
- $software->url_repository,
- ['escape' => false]) ?>
- </li>
- <li>
- <p class="text-overflow">
- <?= $software->description ?>
- </p>
- </li>
- <li>
- <div class="align">
- <p class="">
- <?= __d("ElementProject", "Created by: ") ?>
+ </div>
+ </li>
+ <li>
+ <?= $this->Html->link($software->url_repository,
+ $software->url_repository,
+ ['escape' => false]) ?>
+ </li>
+ <li>
+ <p class="text-overflow">
+ <?= $software->description ?>
</p>
- <?php if (!empty($software->creatorssoftwares)): ?>
- <span class="align">
+ </li>
+ <li>
+ <div class="align">
+ <p class="">
+ <?= __d("ElementProject", "Created by: ") ?>
+ </p>
+ <?php if (!empty($software->creatorssoftwares)): ?>
+ <span class="align">
<?php for ($nbCreatedBy = 0; $nbCreatedBy < Cake\Core\Configure::read("MAX_DISPLAY"); $nbCreatedBy++): ?>
<?php if (isset($software->creatorssoftwares[$nbCreatedBy])) : ?>
<?php echo $software->creatorssoftwares[$nbCreatedBy]->user->username ?>
<?php endif; ?>
<?php endfor; ?>
</span>
- <?php else : ?>
- <span class="align">
+ <?php else : ?>
+ <span class="align">
<?= __d("ElementProject", "The creator of {0} is unknown.", $software->softwarename) ?>
</span>
- <?php endif; ?>
- </div>
- </li>
- </ul>
+ <?php endif; ?>
+ </div>
+ </li>
+ </ul>
+ </div>
</div>
- </div>
+ </section>
</div>
<div class="row">
+ <section>
+ <?php echo $this->Lists->screenshotBlock(
- <?php echo $this->Lists->screenshotBlock(
-
- \Cake\Utility\Hash::extract($software->screenshots, '{n}'),
- [
- "title" => __d("ElementProject", "Screenshots of {0}", $software->softwarename),
- "link" => [
- "id" => $software->id,
- "action" => "screenshots",
- "participate" => __d("Layout", "Add a screenshot for {0}.", $software->softwarename),
- ],
- "tooManyMsg" => __d("Layout", "See all", $software->softwarename),
- 'titleSeeAll' => __d("Layout", "All screenshots of {0}", $software->softwarename),
- "emptyMsg" => __d("ElementProject", "No screenshot for {0}.", $software->softwarename)
- ]
- ); ?>
+ \Cake\Utility\Hash::extract($software->screenshots, '{n}'),
+ [
+ "title" => __d("ElementProject", "Screenshots of {0}", $software->softwarename),
+ "link" => [
+ "id" => $software->id,
+ "action" => "screenshots",
+ "participate" => __d("Layout", "Add a screenshot for {0}.", $software->softwarename),
+ ],
+ "tooManyMsg" => __d("Layout", "See all", $software->softwarename),
+ 'titleSeeAll' => __d("Layout", "All screenshots of {0}", $software->softwarename),
+ "emptyMsg" => __d("ElementProject", "No screenshot for {0}.", $software->softwarename)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
-
- <?php
- echo $this->Lists->reviewBlock(
-
- \Cake\Utility\Hash::extract($software->reviews, '{n}'),
- [
- "title" => __d("ElementProject", "Reviews for {0}", $software->softwarename),
- "link" => [
- "id" => $software->id,
- "action" => "reviewsSoftware",
- "participate" => __d("Layout", "Add a review for {0}.", $software->softwarename),
- ],
- "tooManyMsg" => __d("Layout", "See all"),
- "titleSeeAll" => __d("ElementProject", "All reviews of {0}", $software->softwarename),
- "emptyMsg" => __d("ElementProject", "Be the first to post a review for {0}.", $software->softwarename)
- ]
- ); ?>
+ <section>
+ <?php
+ echo $this->Lists->reviewBlock(
+ \Cake\Utility\Hash::extract($software->reviews, '{n}'),
+ [
+ "title" => __d("ElementProject", "Reviews for {0}", $software->softwarename),
+ "link" => [
+ "id" => $software->id,
+ "action" => "reviewsSoftware",
+ "participate" => __d("Layout", "Add a review for {0}.", $software->softwarename),
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("ElementProject", "All reviews of {0}", $software->softwarename),
+ "emptyMsg" => __d("ElementProject", "Be the first to post a review for {0}.", $software->softwarename)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
- <?php echo $this->Lists->userBlock(
- \Cake\Utility\Hash::extract($software->providerssoftwares, '{n}.user'),
- [
- "title" => __d("ElementProject", "Service providers for {0}", $software->softwarename),
- "link" => [
- "id" => $software->id,
- "action" => "servicesProviders",
- "participate" => __d("Layout", "Declare yourself as a service provider of {0}.", $software->softwarename),
- ],
- "tooManyMsg" => __d("Layout", "See all"),
- "titleSeeAll" => __d("Layout", "All service providers of {0}", $software->softwarename),
- "emptyMsg" => __d("ElementProject", "No service provider for {0}.", $software->softwarename)
- ]
- ); ?>
+ <section>
+ <?php echo $this->Lists->userBlock(
+ \Cake\Utility\Hash::extract($software->providerssoftwares, '{n}.user'),
+ [
+ "title" => __d("ElementProject", "Service providers for {0}", $software->softwarename),
+ "link" => [
+ "id" => $software->id,
+ "action" => "servicesProviders",
+ "participate" => __d("Layout", "Declare yourself as a service provider of {0}.", $software->softwarename),
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("Layout", "All service providers of {0}", $software->softwarename),
+ "emptyMsg" => __d("ElementProject", "No service provider for {0}.", $software->softwarename)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
- <?php echo $this->Lists->userBlock(
- \Cake\Utility\Hash::extract($software->backerssoftwares, '{n}.user'),
- [
- "title" => __d("ElementProject", "Backers for {0}", $software->softwarename),
- "link" => [
- "id" => $software->id,
- "action" => "backersSoftware",
- "participate" => __d("Layout", "Declare yourself as a backer of {0}.", $software->softwarename)
- ],
- "tooManyMsg" => __d("Layout", "See all"),
- "titleSeeAll" => __d("Layout", "All financial backers of {0}", $software->softwarename),
- "emptyMsg" => __d("ElementProject", "No financial backer for {0}.", $software->softwarename)
- ]
- ); ?>
+ <section>
+ <?php echo $this->Lists->userBlock(
+ \Cake\Utility\Hash::extract($software->backerssoftwares, '{n}.user'),
+ [
+ "title" => __d("ElementProject", "Backers for {0}", $software->softwarename),
+ "link" => [
+ "id" => $software->id,
+ "action" => "backersSoftware",
+ "participate" => __d("Layout", "Declare yourself as a backer of {0}.", $software->softwarename)
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("Layout", "All financial backers of {0}", $software->softwarename),
+ "emptyMsg" => __d("ElementProject", "No financial backer for {0}.", $software->softwarename)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
- <?php echo $this->Lists->userBlock(
- \Cake\Utility\Hash::extract($software->userssoftwares, '{n}.user'),
- [
- "title" => __d("ElementProject", "Users of {0}", $software->softwarename),
- "link" => [
- "id" => $software->id,
- "action" => "usersSoftware",
- "participate" => __d("Layout", "Declare yourself as a user of {0}.", $software->softwarename),
- ],
- "tooManyMsg" => __d("Layout", "See all"),
- "titleSeeAll" => __d("Layout", "All declared users of {0}", $software->softwarename),
- "emptyMsg" => __d("ElementProject", "No user for {0}", $software->softwarename)
- ]
- ); ?>
+ <section>
+ <?php echo $this->Lists->userBlock(
+ \Cake\Utility\Hash::extract($software->userssoftwares, '{n}.user'),
+ [
+ "title" => __d("ElementProject", "Users of {0}", $software->softwarename),
+ "link" => [
+ "id" => $software->id,
+ "action" => "usersSoftware",
+ "participate" => __d("Layout", "Declare yourself as a user of {0}.", $software->softwarename),
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("Layout", "All declared users of {0}", $software->softwarename),
+ "emptyMsg" => __d("ElementProject", "No user for {0}", $software->softwarename)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
- <?php echo $this->Lists->softwareBlock(
- \Cake\Utility\Hash::extract($software->alternativeto, '{n}.software'),
- [
- "title" => __d("ElementProject", "Alternative to {0}", $software->softwarename),
- "link" => [
- "id" => $software->id,
- "action" => "alternativeTo",
- "participate" => __d("Layout", "Declare a software that is an alternative to {0}.", $software->softwarename),
- ],
- "tooManyMsg" => __d("Layout", "See all"),
- "titleSeeAll" => __d("Layout", "All alternatives to {0}", $software->softwarename),
- "emptyMsg" => __d("ElementProject", "No alternative to {0}.", $software->softwarename)
- ]
- ); ?>
+ <section>
+ <?php echo $this->Lists->softwareBlock(
+ \Cake\Utility\Hash::extract($software->alternativeto, '{n}.software'),
+ [
+ "title" => __d("ElementProject", "Alternative to {0}", $software->softwarename),
+ "link" => [
+ "id" => $software->id,
+ "action" => "alternativeTo",
+ "participate" => __d("Layout", "Declare a software that is an alternative to {0}.", $software->softwarename),
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("Layout", "All alternatives to {0}", $software->softwarename),
+ "emptyMsg" => __d("ElementProject", "No alternative to {0}.", $software->softwarename)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
- <?php
- echo $this->Lists->softwareBlock(
- \Cake\Utility\Hash::extract($software->workswellsoftwares, '{n}.software'),
- [
- "title" => __d("ElementProject", "Working well with {0}", $software->softwarename),
- "link" => [
- "id" => $software->id,
- "action" => "workswellSoftware",
- "participate" => __d("Layout", "Declare a software that works well with {0}.", $software->softwarename),
- ],
- "tooManyMsg" => __d("Layout", "See all"),
- "titleSeeAll" => __d("Layout", "All softwares that work well with {0}", $software->softwarename),
- "emptyMsg" => __d("ElementProject", "There are no project for {0}", $software->softwarename)
- ]
- ); ?>
+ <section>
+ <?php echo $this->Lists->softwareBlock(
+ \Cake\Utility\Hash::extract($software->workswellsoftwares, '{n}.software'),
+ [
+ "title" => __d("ElementProject", "Working well with {0}", $software->softwarename),
+ "link" => [
+ "id" => $software->id,
+ "action" => "workswellSoftware",
+ "participate" => __d("Layout", "Declare a software that works well with {0}.", $software->softwarename),
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("Layout", "All softwares that work well with {0}", $software->softwarename),
+ "emptyMsg" => __d("ElementProject", "There are no project for {0}", $software->softwarename)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
- <?php echo $this->element("Softwares/metrics", ['software' => $software]) ?>
+ <section>
+ <?php echo $this->element("Softwares/metrics", ['software' => $software]) ?>
+ </section>
</div>
</div>
</div>
?>
<div class="container-fluid" id="page-wrapper">
<div class="row">
- <div class="col-xs-offset-1 col-xs-10 col-sm-offset-1 col-sm-10 col-md-offset-1 col-md-10 col-lg-offset-1 col-lg-10 main">
+ <div
+ class="col-xs-offset-1 col-xs-10 col-sm-offset-1 col-sm-10 col-md-offset-1 col-md-10 col-lg-offset-1 col-lg-10 main">
<div class="row">
- <div id="overview-entity">
- <div class=" col-xs-12 col-sm-3 col-md-3 col-lg-3 hidden-xs">
- <?= $this->Html->link($this->Html->image(COMPTOIR_SRV_URL.$user->logo_directory.DS.$user->photo,
- ["alt"=>$user->username,"class"=>"img-responsive size-logo-overview"]),
- "#",// url of the entity web site.
- ['escape' => false ,"class"=>"img-responsive"] ) ?>
- </div>
+ <section>
+ <div id="overview-entity">
+ <div class=" col-xs-12 col-sm-3 col-md-3 col-lg-3 hidden-xs">
+ <?= $this->Html->link($this->Html->image(COMPTOIR_SRV_URL . $user->logo_directory . DS . $user->photo,
+ ["alt" => $user->username, "class" => "img-responsive size-logo-overview"]),
+ "#",// url of the entity web site.
+ ['escape' => false, "class" => "img-responsive"]) ?>
+ </div>
- <div class="metric-score col-xs-11 col-sm-offset-1 col-sm-7 col-md-8 col-lg-8">
- <ul class="list-unstyled">
- <li>
- <h1>
- <?= $user->username ?>
- </h1>
- </li>
- </ul>
- <div>
- <p class="text-overflow">
- <?= $user->description ?>
- </p>
+ <div class="metric-score col-xs-11 col-sm-offset-1 col-sm-7 col-md-8 col-lg-8">
+ <ul class="list-unstyled">
+ <li>
+ <h1>
+ <?= $user->username ?>
+ </h1>
+ </li>
+ </ul>
+ <div>
+ <p class="text-overflow">
+ <?= $user->description ?>
+ </p>
+ </div>
</div>
</div>
- </div>
+ </section>
</div> <!-- END of OVERVIEW-->
<div class="row">
- <?php echo $this->Lists->softwareBlock(
- \Cake\Utility\Hash::extract($user->createdsoftwares, '{n}.software'),
- [
- "title"=>__d("ElementEntity","Creator of"),
- "link" => [
- "id" => $user->id,
- "action"=>"createdSoftwares",
- "participate" => __d("Layout","Declare a software that was created by {0}.",$user->username),
- ],
- "tooManyMsg"=> __d("Layout","See all"),
- "titleSeeAll" => __d("Layout", "All softwares created by {0}.", $user->username),
- "emptyMsg" => __d("ElementEntity","{0} did not create a software, yet.",$user->username)
- ]
- ); ?>
+ <section>
+ <?php echo $this->Lists->softwareBlock(
+ \Cake\Utility\Hash::extract($user->createdsoftwares, '{n}.software'),
+ [
+ "title" => __d("ElementEntity", "Creator of"),
+ "link" => [
+ "id" => $user->id,
+ "action" => "createdSoftwares",
+ "participate" => __d("Layout", "Declare a software that was created by {0}.", $user->username),
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("Layout", "All softwares created by {0}.", $user->username),
+ "emptyMsg" => __d("ElementEntity", "{0} did not create a software, yet.", $user->username)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
- <?php echo $this->Lists->softwareBlock(
- \Cake\Utility\Hash::extract($user->contributionssoftwares, '{n}.software'),
- [
- "title"=>__d("ElementEntity","Contributor for"),
- "link" => [
- "id" => $user->id,
- "action"=>"contributionsSoftwares",
- "participate" => __d("Layout","Declare a software that {0} has contributed to.",$user->username),
- ],
- "tooManyMsg"=>__d("Layout","See all"),
- "titleSeeAll" => __d("Layout", "All softwares which {0} has contributed to.", $user->username),
- "emptyMsg" => __d("ElementEntity","{0} do not contribute to any project, yet.",$user->username )
- ]
- ); ?>
+ <section>
+ <?php echo $this->Lists->softwareBlock(
+ \Cake\Utility\Hash::extract($user->contributionssoftwares, '{n}.software'),
+ [
+ "title" => __d("ElementEntity", "Contributor for"),
+ "link" => [
+ "id" => $user->id,
+ "action" => "contributionsSoftwares",
+ "participate" => __d("Layout", "Declare a software that {0} has contributed to.", $user->username),
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("Layout", "All softwares which {0} has contributed to.", $user->username),
+ "emptyMsg" => __d("ElementEntity", "{0} do not contribute to any project, yet.", $user->username)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
- <?php echo $this->Lists->softwareBlock(
- \Cake\Utility\Hash::extract($user->backedsoftwares, '{n}.software'),
- [
- "title"=>__d("ElementEntity","Backer for"),
- "link" => [
- "id" => $user->id,
- "action"=>"Backedsoftwares",
- "participate" => __d("Layout","Declare a software that {0} is a backer for.",$user->username),
- ],
- "tooManyMsg"=>__d("Layout","See all"),
- "titleSeeAll" => __d("Layout", "All softwares backed by {0}.", $user->username),
- "emptyMsg" => __d("ElementEntity","{0} do not backs a software, yet.",$user->username )
- ]
- ); ?>
+ <section>
+ <?php echo $this->Lists->softwareBlock(
+ \Cake\Utility\Hash::extract($user->backedsoftwares, '{n}.software'),
+ [
+ "title" => __d("ElementEntity", "Backer for"),
+ "link" => [
+ "id" => $user->id,
+ "action" => "Backedsoftwares",
+ "participate" => __d("Layout", "Declare a software that {0} is a backer for.", $user->username),
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("Layout", "All softwares backed by {0}.", $user->username),
+ "emptyMsg" => __d("ElementEntity", "{0} do not backs a software, yet.", $user->username)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
-
- <?php
- echo $this->Lists->softwareBlock(
- \Cake\Utility\Hash::extract($user->providerforsoftwares, '{n}.software'),
- [
- "title"=>__d("ElementEntity","Provider for"),
- "link" => [
- "id" => $user->id,
- "action"=>"providerforSoftwares",
- "participate" => __d("Layout","Declare a software that {0} is a service provider for.",$user->username),
- ],
- "tooManyMsg"=>__d("Layout","See all"),
- "titleSeeAll" => __d("Layout", "All softwares which {0} is a service provider for.", $user->username),
- "emptyMsg" => __d("ElementEntity","{0} do not povide a software, yet.",$user->username)
- ]
- ); ?>
+ <section>
+ <?php
+ echo $this->Lists->softwareBlock(
+ \Cake\Utility\Hash::extract($user->providerforsoftwares, '{n}.software'),
+ [
+ "title" => __d("ElementEntity", "Provider for"),
+ "link" => [
+ "id" => $user->id,
+ "action" => "providerforSoftwares",
+ "participate" => __d("Layout", "Declare a software that {0} is a service provider for.", $user->username),
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("Layout", "All softwares which {0} is a service provider for.", $user->username),
+ "emptyMsg" => __d("ElementEntity", "{0} do not povide a software, yet.", $user->username)
+ ]
+ ); ?>
+ </section>
</div>
<div class="row">
- <?php echo $this->Lists->softwareBlock(
- \Cake\Utility\Hash::extract($user->usedsoftwares, '{n}.software'),
- [
- "title"=>__d("ElementEntity","User of"),
- "link" => [
- "id" => $user->id,
- "action"=>"UsedSoftwares",
- "participate" => __d("Layout","Declare a software that is used by {0}.",$user->username),
- ],
- "tooManyMsg"=> __d("Layout","See all"),
- "titleSeeAll" => __d("Layout", "All softwares used by {0}", $user->username),
- "emptyMsg" => __d("ElementEntity","{0} do not used a software, yet.",$user->username)
- ]
- ); ?>
+ <section>
+ <?php echo $this->Lists->softwareBlock(
+ \Cake\Utility\Hash::extract($user->usedsoftwares, '{n}.software'),
+ [
+ "title" => __d("ElementEntity", "User of"),
+ "link" => [
+ "id" => $user->id,
+ "action" => "UsedSoftwares",
+ "participate" => __d("Layout", "Declare a software that is used by {0}.", $user->username),
+ ],
+ "tooManyMsg" => __d("Layout", "See all"),
+ "titleSeeAll" => __d("Layout", "All softwares used by {0}", $user->username),
+ "emptyMsg" => __d("ElementEntity", "{0} do not used a software, yet.", $user->username)
+ ]
+ ); ?>
+ </section>
</div>
</div>
</div>