*/
Configure::write('VERSION',
[
- "ribbon" => "0.9",
- "footer"=> "0.9.1"
+ "ribbon" => "v0.9.2",
+ "footer"=> "v0.9.2"
]
);
public function softwaresList()
{
-
+
$request = new RequestForm();
if ($this->request->is('post')) {
if ($request->execute($this->request->data)) {
$softwares = json_decode($request->getDatas($this->request->data));
$this->set('softwares',$softwares);
} else {
-
+
}
}
}
use App\Controller\AppController;
use Cake\Network\Http\Client;
+use Cake\Core\Configure;
/**
* CakePHP UsersController
$this->ComptoirServer->get(COMPTOIR_SRV_API . "softwares/reviewsSoftware/" . $id, 'software', 'software');
}
+
+ /**
+ * Sm means SourceMetric, objective sources of metric,
+ * Cm means ComptoirMetric, metrics from Comptoir du libre .
+ */
+ public function formula() {
+ $this->set('formula', ["metrics" => ["Sm_last_commit_age" => __d("ProjectController", "The age(in days) of the last commit for the project."),
+ "Sm_project_age" => __d("ProjectController", "The age of the project (in days)"),
+ "Sm_delta_commit_one_month" => __d("ProjectController", "The difference between the number of commits in a month and the average of the number of commits in one month for all the projects."),
+ "Sm_delta_commit_twelve_month" => __d("ProjectController", "The difference between the number of commits in twelve months and the average of the number of commits in twelve months for all the projects."),
+ "Sm_number_of_contributors" => __d("ProjectController", "The number of contributors working on the project."), "Sm_high_committer_percent" => __d("ProjectController", "The contribution percentage of the highest contributor."),
+ "Cm_code_gouv_label" => __d("ProjectController", "The project obtains the label code gov if it is available on code.gouv.fr"),
+ "Cm_declared_users" => __d("ProjectController", "The number of declared users on Comptoir du libre."),
+ "Cm_average_review_score" => __d("ProjectController", "The average review score for this project on Comptoir du libre."),
+ "Cm_screenshots" => __d("ProjectController", "The number of screenshots available on Comptoir du libre.")
+ ],
+ "nbSource" => [ sizeof(Configure::read("SOURCE_CODE_METRICS"))]
+ ]);
+ }
}
</div>
<?php endif; ?>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <?= $this->Html->link(__d("ElementProject", "How to calculate the mark"), ['controller' => 'Project', 'action' => 'formula'], ['escape' => false]) ?>
+ <?= $this->Html->link(__d("ElementProject", "How to calculate the mark"), ['controller' => 'Softwares', 'action' => 'formula'], ['escape' => false]) ?>
</div>
</section>
\ No newline at end of file
+++ /dev/null
-<?php
-
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-
-$this->layout = 'base';
-?>
-
-
-<?php if (!empty( $relationshipsSoftwaresUser ) ): ?>
-<div class="row">
- <div class="col-xs-11 col-xs-offset-1 col-sm-12 col-md-11 col-md-offset-1 col-lg-11 main">
- <section class="row">
- <h2>
- <?= __("{0}",$relationshipsSoftwaresUser[0]->relationship->name)?>
- </h2>
- <ul class=" list-unstyled ">
- <?php foreach ($relationshipsSoftwaresUser as $rsu) : ?>
- <li>
- <?php echo $this->cell('SoftwareSummary',[$rsu->software->id])->render('../../Element/ProjectPage/softwareSummary')?>
- </li>
- <?php endforeach; ?>
- </ul>
- </section>
- </div>
-</div>
-
-<?php endif; ?>
\ No newline at end of file
+++ /dev/null
-<?php
-
-
-
-$this->layout = 'entity';
-
-?>
-
*/
$this->layout = 'base';
?>
-<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="row">
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <h2><?= __d("Home","Contact the Comptoir")?></h2>
- </div>
- <ul class="list-unstyled">
- <li class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <div class="glyphicon glyphicon-user"> Matthieu FAURE<?= __d("Home"," : Project leader")?></div>
- </li>
- <li class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <div class="glyphicon glyphicon-phone-alt"><?= __d("Home"," Telephone : 04 67 65 05 88 ")?></div>
- </li>
- <li class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <div class="glyphicon glyphicon-envelope"><?= __d("Home"," Courriel : ")?><a href="mailto:comptoir@adullact.org">comptoir@adullact.org</a></div>
- </li>
- <li class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <div class="glyphicon glyphicon-map-marker"><?= __d("Home"," Address : ")?> Association Adullact, 836 rue du Mas de Verchant, 34 000 Montpellier</div>
- </li>
- <li class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <div class="glyphicon glyphicon-globe"><?= __d("Home"," Twitter : ")?><a href="https://www.twitter.com/comptoirdulibre">@comptoirdulibre</a></div>
- </ul>
- </div>
- </div>
-</div>
+<h2><?= __d("Home", "Contact the Comptoir") ?></h2>
+<ul class="list-unstyled">
+ <li>
+ <i class="glyphicon glyphicon-user"></i> Matthieu FAURE<?= __d("Home", " : Project leader") ?>
+ </li>
+ <li>
+ <i class="glyphicon glyphicon-phone-alt"></i><?= __d("Home", " Telephone : 04 67 65 05 88 ") ?>
+ </li>
+ <li>
+ <i class="glyphicon glyphicon-envelope"></i><?= __d("Home", " Courriel : ") ?><a
+ href="mailto:comptoir@adullact.org">comptoir@adullact.org</a>
+ </li>
+ <li>
+ <i class="glyphicon glyphicon-map-marker"></i><?= __d("Home", " Address : ") ?> Association Adullact, 836 rue du
+ Mas de Verchant, 34000 Montpellier
+ </li>
+ <li>
+ <i class="glyphicon glyphicon-globe"></i><?= __d("Home", " Twitter : ") ?><a
+ href="https://www.twitter.com/comptoirdulibre">@comptoirdulibre</a>
+</ul>
\ No newline at end of file
$this->layout = 'base';
?>
-<main>
<p class="well">
<?= __d("Home", "Hello and welcome to Comptoir du libre.") ?>
</p>
<?php if (isset($lastAdded)) : ?>
<?php echo $this->Lists->softwares(\Cake\Utility\Hash::extract($lastAdded->softwares, '{n}'), true); ?>
- <?php endif; ?>
-</main>
\ No newline at end of file
+ <?php endif; ?>
\ No newline at end of file
*/
$this->layout = 'base';
?>
-<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">
+<h2><?= __d("Home", "Upcoming features") ?></h2>
- <div class="row">
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <h2><?= __d("Home","Upcoming features")?></h2>
+<ul>
+ <li><?= __d("Home", "Create a user (a collective or a company)") ?></li>
+ <li><?= __d("Home", "Ability to become a user of a software.") ?></li>
+ <li><?= __d("Home", "Ability to become a service provider.") ?></li>
+ <li><?= __d("Home", "Ability to become a creator of a software.") ?></li>
+ <li><?= __d("Home", "Ability to review a software.") ?></li>
+ <li><?= __d("Home", "Ability to become a backer of a software.") ?></li>
+</ul>
- <ul>
- <li><?= __d("Home","Create a user (a collective or a company)")?></li>
- <li><?= __d("Home","Ability to become a user of a software.")?></li>
- <li><?= __d("Home","Ability to become a service provider.")?></li>
- <li><?= __d("Home","Ability to become a creator of a software.")?></li>
- <li><?= __d("Home","Ability to review a software.")?></li>
- <li><?= __d("Home","Ability to become a backer of a software.")?></li>
- </ul>
- </div>
- </div>
+<h2><?= __d("Home", "How to participate") ?></h2>
- <div class="row">
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <h2><?= __d("Home","How to participate")?></h2>
-
- <p>
- <?= __d("Home","For now, the forms for adding information have not been implemented yet. If you want to contribute now you can send us your information by mail.")?>
- </p>
- <p>
- <?= __d("Home","Here is our email address :")?> <a href="mailto:comptoir@adullact.org">comptoir@adullact.org</a>
- </p>
-
- </div>
- </div>
- </div>
-</div>
+<p>
+ <?= __d("Home", "For now, the forms for adding information have not been implemented yet. If you want to contribute now you can send us your information by mail.") ?>
+</p>
+<p>
+ <?= __d("Home", "Here is our email address :") ?> <a href="mailto:comptoir@adullact.org">comptoir@adullact.org</a>
+</p>
\ No newline at end of file
<!DOCTYPE html>
<html lang="fr">
<?= $this->element("Pages/header") ?>
+
<body class="backgroundbody">
<?= $this->element("Navigation/navbarFixedTop") ?>
<div class="container-fluid">
+ <main>
<?= $this->fetch("content")?>
-
+ </main>
<?= $this->element("Pages/footer") ?>
</div>
</body>
<div class="col-xs-offset-1 col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-1 main">
<div class="row">
- <?= $this->element("Entity/serviceProvider")?>
+
</div>
</div>
</div>
<?php
-$this->layout = 'results';
+$this->layout = 'base';
?>
$this->layout = 'base';
?>
-<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="row">
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <h2><?= __d("Request","Search results")?></h2>
- </div>
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <div class="row">
- <?= $this->Lists->softwares($softwares->softwares)?>
- </div>
- </div>
- </div>
- </div>
-</div>
+<h2><?= __d("Request", "Search results") ?></h2>
+
+<?= $this->Lists->softwares($softwares->softwares) ?>
$this->layout('base');
?>
-<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="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)
- ],
- false
- ); ?>
- </div>
- </div>
- </div>
-</div>
+<?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)
+ ],
+ false
+); ?>
+
$this->layout('base');
?>
-<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="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 backers for {0}", $software->softwarename)
- ],
- false
- ); ?>
- </div>
- </div>
- </div>
-</div>
+<?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 backers for {0}", $software->softwarename)
+ ],
+ false
+); ?>
+
$this->layout('base');
?>
-
-<div class="container">
- <div class="row">
- <div class="col-sm-12 col-xs-12 col-md-9 col-md-offset-1 well ">
-
+<div class="row">
+ <div class="col-sm-12 col-xs-12 col-md-9 col-md-offset-1 well ">
<h1>
- <?php echo __d("Projectdefault","Formula:"); ?>
+ <?php echo __d("Projectdefault", "Formula:"); ?>
</h1>
-
+
<p>
- <?php echo __d("Projectdefault","( Σ points obtenus pour les indicateurs automatiques + Σ points obtenus pour les indicateurs d'usage ) / Nombre de points maximal"); ?>
+ <?php echo __d("Projectdefault", "( Σ points obtenus pour les indicateurs automatiques + Σ points obtenus pour les indicateurs d'usage ) / Nombre de points maximal"); ?>
</p>
+ </div>
+</div>
- </div>
-
-
- <div class=" col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <h2 >
- <?php echo __d("Projectdefault","Formula's elements and descriptions"); ?>
- </h2>
- </div>
-
-
- <div class="col-xs-12 col-sm-12 col-md-12">
- <h3>
- <?php echo __d("Elementdefault","Componants of SourceMetric"); ?>
- </h3>
+<h2>
+ <?php echo __d("Projectdefault", "Formula's elements and descriptions"); ?>
+</h2>
- <table class="table table-hover table-bordered table-responsive">
+<h3>
+ <?php echo __d("Elementdefault", "Componants of SourceMetric"); ?>
+</h3>
- <tbody>
- <?php foreach ($formula['metrics'] as $key => $value) : ?>
- <?php if ( strpbrk($key , 'S') ) : ?>
+<table class="table table-hover table-bordered table-responsive">
+ <tbody>
+ <?php foreach ($formula['metrics'] as $key => $value) : ?>
+ <?php if (strpbrk($key, 'S')) : ?>
- <tr class="info">
- <td>
- <?php echo __d( "ElementProject" , str_replace("Sm_","",$key) ); ?>
- </td>
- <td>
- <?php echo $value ; ?>
- </td>
- </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("ElementProject", str_replace("Sm_", "", $key)); ?>
+ </td>
+ <td>
+ <?php echo $value; ?>
+ </td>
+ </tr>
- <?php endif; ?>
+ <?php endif; ?>
- <?php endforeach; ?>
- </tbody>
- </table>
- </div>
+ <?php endforeach; ?>
+ </tbody>
+</table>
- <div class="col-md-6 col-sm-hidden">
<span>
- <?php echo __d("Projectdefault","Number of automatic metrics: "); ?> <?php echo $formula['nbSource'] [0] ; ?>
+ <?php echo __d("Projectdefault", "Number of automatic metrics: "); ?><?php echo $formula['nbSource'] [0]; ?>
</span>
- </div>
-
-
- <div class="col-xs-12 col-sm-12 col-md-12">
- <h3>
- <?php echo __d("Elementdefault","Componants of ComptoirMetric"); ?>
- </h3>
-
- <table class="table table-hover table-bordered table-responsive">
- <tbody>
- <?php foreach ($formula['metrics'] as $key => $value) : ?>
- <?php if ( strpbrk($key , 'C') ) : ?>
-
-
- <tr class="success">
- <td>
- <?php echo __d("ElementProject",str_replace("Cm_","",$key) ); ?>
- </td>
- <td>
- <?php echo $value ; ?>
- </td>
- </tr>
- <?php endif; ?>
+<h3>
+ <?php echo __d("Elementdefault", "Componants of ComptoirMetric"); ?>
+</h3>
- <?php endforeach; ?>
- </tbody>
- </table>
- </div>
+<table class="table table-hover table-bordered table-responsive">
+ <tbody>
+ <?php foreach ($formula['metrics'] as $key => $value) : ?>
+ <?php if (strpbrk($key, 'C')) : ?>
+ <tr class="success">
+ <td>
+ <?php echo __d("ElementProject", str_replace("Cm_", "", $key)); ?>
+ </td>
+ <td>
+ <?php echo $value; ?>
+ </td>
+ </tr>
+ <?php endif; ?>
- <div class=" col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <h2 >
- <?php echo __d("Projectdefault","How the formula is calculated"); ?>
- </h2>
- </div>
+ <?php endforeach; ?>
+ </tbody>
+</table>
- <div class="col-xs-12 col-sm-12 col-md-12">
- <h3>
- <?php echo __d("Projectdefault","Explaining the formula:"); ?>
- </h3>
- <br />
- <p> <?php echo __d("Projectdefault","Each metrics has a grading scale that determines the amount of points awarded to the software."); ?></p>
- <p> <?php echo __d("Projectdefault","If we take the age of the project as a metrics, the grading scale is: "); ?></p>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <tbody>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault",'If we have "project_age < 3 years" then the software does not gain any points.'); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault",'If we have "3 years < project_age < 5 years" then the software gains one out of two points.'); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault",'If we have "project_age > 5 years" then the software gains two out of two points.'); ?>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <p> <?php echo __d("Projectdefault","For the number of contributors, the number of commits in one month, and the number of commits in twelve months there is an extra step taken to calculate the score. Each metric is compared to the average of all softwares and multiplied by 100 to get a percentage. Here is the calculation for the number of contributors:"); ?></p>
- <br />
- <div class="well ">
- <p><?php echo __d("Projectdefault","( nombre de contributeurs - moyenne de nombre de contributeurs ) / moyenne de nombre de contributeurs"); ?> </p>
- </div>
- <br />
- <p> <?php echo __d("Projectdefault","After we have applied the grading scale on each metric of the software, we find the sum of all the points. Then we divide the sum by the maximum amount of points a software can get and we multiply that by a hundred to get the final score."); ?></p>
- <h3>
- <?php echo __d("Projectdefault","Grading scales:"); ?>
- </h3>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <thead>
- <tr>
- <th><?php echo __d("Projectdefault","Age of the last commit"); ?></th>
- <th><?php echo __d("Projectdefault","Points"); ?></th>
- </tr>
- </thead>
- <tbody>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","age ‹ 30 days"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","4 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","30 days ‹ age ‹ 90 days"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","3 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","90 days ‹ age ‹ 2 years"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","2 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","2 years ‹ age ‹ 3 years"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","1 point"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","age › 3 years"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","0 point"); ?>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <thead>
- <tr>
- <th><?php echo __d("Projectdefault","Age of the project"); ?></th>
- <th><?php echo __d("Projectdefault","Points"); ?></th>
- </tr>
- </thead>
- <tbody>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","project_age ‹ 3 years"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","0 point"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","3 years ‹ project_age ‹ 5 years"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","1 point"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","project_age › 5 years"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","2 points"); ?>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <thead>
- <tr>
- <th><?php echo __d("Projectdefault","delta_commit_1m"); ?></th>
- <th><?php echo __d("Projectdefault","Points"); ?></th>
- </tr>
- </thead>
- <tbody>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","delta_commit_1m › 50%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","4 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","50% › delta_commit_1m › 25%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","3 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","25% › delta_commit_1m › 0%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","2 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","0% › delta_commit_1m › -25%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","1 point"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","-25% › delta_commit_1m"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","0 point"); ?>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <thead>
- <tr>
- <th><?php echo __d("Projectdefault","delta_commit_12m"); ?></th>
- <th><?php echo __d("Projectdefault","Points"); ?></th>
- </tr>
- </thead>
- <tbody>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","delta_commit_12m › 50%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","4 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","50% › delta_commit_12m › 25%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","3 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","25% › delta_commit_12m › 0%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","2 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","0% › delta_commit_12m › -25%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","1 point"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","-25% › delta_commit_12m"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","0 point"); ?>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <thead>
- <tr>
- <th><?php echo __d("Projectdefault","delta_nb_contributors"); ?></th>
- <th><?php echo __d("Projectdefault","Points"); ?></th>
- </tr>
- </thead>
- <tbody>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","delta_nb_contributors › 50%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","4 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","50% › delta_nb_contributors › 25%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","3 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","25% › delta_nb_contributors › 0%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","2 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","0% › delta_nb_contributors › -25%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","1 point"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","-25% › delta_nb_contributors"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","0 point"); ?>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <thead>
- <tr>
- <th><?php echo __d("Projectdefault","code_percent"); ?></th>
- <th><?php echo __d("Projectdefault","Points"); ?></th>
- </tr>
- </thead>
- <tbody>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","code_percent ‹ 10%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","4 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","50% › code_percent › 10%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","3 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","50% › code_percent › 90%"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","2 points"); ?>
- </td>
- </tr>
- <tr class="info">
- <td>
- <?php echo __d("Projectdefault","90% ‹ code_percent"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","0 point"); ?>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <thead>
- <tr>
- <th><?php echo __d("Projectdefault","Declared users"); ?></th>
- <th><?php echo __d("Projectdefault","Points"); ?></th>
- </tr>
- </thead>
- <tbody>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","declared users › 5 users"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","2 points"); ?>
- </td>
- </tr>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","5 users › declared users › 0 users"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","1 point"); ?>
- </td>
- </tr>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","declared users = 0 users"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","0 point"); ?>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <thead>
- <tr>
- <th><?php echo __d("Projectdefault","average_review"); ?></th>
- <th><?php echo __d("Projectdefault","Points"); ?></th>
- </tr>
- </thead>
- <tbody>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","average_review › 2.5 stars"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","2 points"); ?>
- </td>
- </tr>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","2.5 stars ›= average_review › 0 stars"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","1 point"); ?>
- </td>
- </tr>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","average_review = 0 stars"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","0 point"); ?>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <thead>
- <tr>
- <th><?php echo __d("Projectdefault","nb_screenshots"); ?></th>
- <th><?php echo __d("Projectdefault","Points"); ?></th>
- </tr>
- </thead>
- <tbody>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","nb_screenshots › 2 screenshots"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","2 points"); ?>
- </td>
- </tr>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","2 screenshots ›= nb_screenshots › 0 screenshots"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","1 point"); ?>
- </td>
- </tr>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","nb_screenshots = 0 screenshots"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","0 point"); ?>
- </td>
- </tr>
- </tbody>
- </table>
- <br />
- <table class="table table-hover table-bordered table-responsive">
- <thead>
- <tr>
- <th><?php echo __d("Projectdefault","label_code_gouv"); ?></th>
- <th><?php echo __d("Projectdefault","Points"); ?></th>
- </tr>
- </thead>
- <tbody>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","Does have label_code_gouv"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","1 point"); ?>
- </td>
- </tr>
- <tr class="success">
- <td>
- <?php echo __d("Projectdefault","Does not have label_code_gouv"); ?>
- </td>
- <td>
- <?php echo __d("Projectdefault","0 point"); ?>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
+<h2>
+ <?php echo __d("Projectdefault", "How the formula is calculated"); ?>
+</h2>
- <!-- END row-->
+<h3>
+ <?php echo __d("Projectdefault", "Explaining the formula:"); ?>
+</h3>
+<br/>
+<p> <?php echo __d("Projectdefault", "Each metrics has a grading scale that determines the amount of points awarded to the software."); ?></p>
+<p> <?php echo __d("Projectdefault", "If we take the age of the project as a metrics, the grading scale is: "); ?></p>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <tbody>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", 'If we have "project_age < 3 years" then the software does not gain any points.'); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", 'If we have "3 years < project_age < 5 years" then the software gains one out of two points.'); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", 'If we have "project_age > 5 years" then the software gains two out of two points.'); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br/>
+<p> <?php echo __d("Projectdefault", "For the number of contributors, the number of commits in one month, and the number of commits in twelve months there is an extra step taken to calculate the score. Each metric is compared to the average of all softwares and multiplied by 100 to get a percentage. Here is the calculation for the number of contributors:"); ?></p>
+<br/>
+<div class="well ">
+ <p><?php echo __d("Projectdefault", "( nombre de contributeurs - moyenne de nombre de contributeurs ) / moyenne de nombre de contributeurs"); ?> </p>
</div>
-
- <!-- END container -->
-</div>
\ No newline at end of file
+<br/>
+<p> <?php echo __d("Projectdefault", "After we have applied the grading scale on each metric of the software, we find the sum of all the points. Then we divide the sum by the maximum amount of points a software can get and we multiply that by a hundred to get the final score."); ?></p>
+<h3>
+ <?php echo __d("Projectdefault", "Grading scales:"); ?>
+</h3>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <thead>
+ <tr>
+ <th><?php echo __d("Projectdefault", "Age of the last commit"); ?></th>
+ <th><?php echo __d("Projectdefault", "Points"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "age ‹ 30 days"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "4 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "30 days ‹ age ‹ 90 days"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "3 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "90 days ‹ age ‹ 2 years"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "2 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "2 years ‹ age ‹ 3 years"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "1 point"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "age › 3 years"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "0 point"); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <thead>
+ <tr>
+ <th><?php echo __d("Projectdefault", "Age of the project"); ?></th>
+ <th><?php echo __d("Projectdefault", "Points"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "project_age ‹ 3 years"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "0 point"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "3 years ‹ project_age ‹ 5 years"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "1 point"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "project_age › 5 years"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "2 points"); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <thead>
+ <tr>
+ <th><?php echo __d("Projectdefault", "delta_commit_1m"); ?></th>
+ <th><?php echo __d("Projectdefault", "Points"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "delta_commit_1m › 50%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "4 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "50% › delta_commit_1m › 25%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "3 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "25% › delta_commit_1m › 0%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "2 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "0% › delta_commit_1m › -25%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "1 point"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "-25% › delta_commit_1m"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "0 point"); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <thead>
+ <tr>
+ <th><?php echo __d("Projectdefault", "delta_commit_12m"); ?></th>
+ <th><?php echo __d("Projectdefault", "Points"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "delta_commit_12m › 50%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "4 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "50% › delta_commit_12m › 25%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "3 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "25% › delta_commit_12m › 0%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "2 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "0% › delta_commit_12m › -25%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "1 point"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "-25% › delta_commit_12m"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "0 point"); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <thead>
+ <tr>
+ <th><?php echo __d("Projectdefault", "delta_nb_contributors"); ?></th>
+ <th><?php echo __d("Projectdefault", "Points"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "delta_nb_contributors › 50%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "4 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "50% › delta_nb_contributors › 25%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "3 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "25% › delta_nb_contributors › 0%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "2 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "0% › delta_nb_contributors › -25%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "1 point"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "-25% › delta_nb_contributors"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "0 point"); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <thead>
+ <tr>
+ <th><?php echo __d("Projectdefault", "code_percent"); ?></th>
+ <th><?php echo __d("Projectdefault", "Points"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "code_percent ‹ 10%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "4 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "50% › code_percent › 10%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "3 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "50% › code_percent › 90%"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "2 points"); ?>
+ </td>
+ </tr>
+ <tr class="info">
+ <td>
+ <?php echo __d("Projectdefault", "90% ‹ code_percent"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "0 point"); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <thead>
+ <tr>
+ <th><?php echo __d("Projectdefault", "Declared users"); ?></th>
+ <th><?php echo __d("Projectdefault", "Points"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "declared users › 5 users"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "2 points"); ?>
+ </td>
+ </tr>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "5 users › declared users › 0 users"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "1 point"); ?>
+ </td>
+ </tr>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "declared users = 0 users"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "0 point"); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <thead>
+ <tr>
+ <th><?php echo __d("Projectdefault", "average_review"); ?></th>
+ <th><?php echo __d("Projectdefault", "Points"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "average_review › 2.5 stars"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "2 points"); ?>
+ </td>
+ </tr>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "2.5 stars ›= average_review › 0 stars"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "1 point"); ?>
+ </td>
+ </tr>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "average_review = 0 stars"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "0 point"); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <thead>
+ <tr>
+ <th><?php echo __d("Projectdefault", "nb_screenshots"); ?></th>
+ <th><?php echo __d("Projectdefault", "Points"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "nb_screenshots › 2 screenshots"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "2 points"); ?>
+ </td>
+ </tr>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "2 screenshots ›= nb_screenshots › 0 screenshots"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "1 point"); ?>
+ </td>
+ </tr>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "nb_screenshots = 0 screenshots"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "0 point"); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br/>
+<table class="table table-hover table-bordered table-responsive">
+ <thead>
+ <tr>
+ <th><?php echo __d("Projectdefault", "label_code_gouv"); ?></th>
+ <th><?php echo __d("Projectdefault", "Points"); ?></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "Does have label_code_gouv"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "1 point"); ?>
+ </td>
+ </tr>
+ <tr class="success">
+ <td>
+ <?php echo __d("Projectdefault", "Does not have label_code_gouv"); ?>
+ </td>
+ <td>
+ <?php echo __d("Projectdefault", "0 point"); ?>
+ </td>
+ </tr>
+ </tbody>
+</table>
\ No newline at end of file
?>
<?php if (!empty( $softwares ) ): ?>
-<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">
<h2>
<?= __d("ElementProject","Software list for Comptoir du libre")?>
</h2>
<section>
<?= $this->Lists->softwares($softwares)?>
</section>
- </div>
-</div>
<?php endif; ?>
$this->layout('base');
?>
-<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="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" => "reviewsSofware",
- "participate" => __d("Layout","Add a screenshot for {0}",$software->softwarename),
- ],
- "tooManyMsg" => __d("Layout","All reviews of {0}", $software->softwarename),
- "emptyMsg" => __d("ElementProject","Be the first to post a review for {0}.", $software->softwarename)
- ]
- ,false
- ); ?>
- </div>
- </div>
- </div>
-</div>
+<?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" => "reviewsSofware",
+ "participate" => __d("Layout", "Add a screenshot for {0}", $software->softwarename),
+ ],
+ "tooManyMsg" => __d("Layout", "All reviews of {0}", $software->softwarename),
+ "emptyMsg" => __d("ElementProject", "Be the first to post a review for {0}.", $software->softwarename)
+ ]
+ , false
+); ?>
$this->layout('base');
?>
-<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="row">
- <?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("Layout", "No screenshot for {0}.", $software->softwarename)
- ],
- false
- ); ?>
- </div>
- </div>
- </div>
-</div>
+ \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("Layout", "No screenshot for {0}.", $software->softwarename)
+ ],
+ false
+ ); ?>
\ No newline at end of file
$this->layout('base');
?>
-<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="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)
- ],
- false
- ); ?>
- </div>
- </div>
- </div>
-</div>
\ No newline at end of file
+
+<?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)
+ ],
+ false
+); ?>
\ No newline at end of file
$this->layout('base');
?>
-<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="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 users for {0}", $software->softwarename)
- ],
- false
- ); ?>
- </div>
- </div>
- </div>
-</div>
+<?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 users for {0}", $software->softwarename)
+ ],
+ false
+); ?>
\ No newline at end of file
<?php
$this->layout('base');
?>
-<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">
- <div class="row">
<!-- --------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------- Overview ----------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------------------------------------------------ -->
- <section>
- <div class="overview-entity ">
- <div class=" col-xs-12 col-sm-4 col-md-4 col-lg-4 hidden-xs">
+ <section class="row">
+ <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"]),
<?= $software->description ?>
</p>
</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">
- <?= __d("ElementProject", "The creator of {0} is unknown.", $software->softwarename) ?>
- </span>
- <?php endif; ?>
- </div>
- </li>
</ul>
</div>
- </div>
</section>
<!-- --------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------- End overview ------------------------------------------------------------
-- ------------------------------------------------------------------------------------------------------------------------------------------ -->
- </div>
- <div class="row">
<section>
<?php echo $this->Lists->screenshotBlock(
); ?>
</section>
- </div>
- <div class="row">
<section>
<?php
echo $this->Lists->reviewBlock(
]
); ?>
</section>
- </div>
- <div class="row">
<section>
<?php echo $this->Lists->userBlock(
\Cake\Utility\Hash::extract($software->providerssoftwares, '{n}.user'),
]
); ?>
</section>
- </div>
-
- <div class="row">
- <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">
<section>
<?php echo $this->Lists->userBlock(
\Cake\Utility\Hash::extract($software->userssoftwares, '{n}.user'),
]
); ?>
</section>
- </div>
- <div class="row">
<section>
<?php echo $this->Lists->softwareBlock(
\Cake\Utility\Hash::extract($software->alternativeto, '{n}.software'),
]
); ?>
</section>
- </div>
- <div class="row">
<section>
<?php echo $this->Lists->softwareBlock(
\Cake\Utility\Hash::extract($software->workswellsoftwares, '{n}.software'),
]
); ?>
</section>
- </div>
- <div class="row">
+
<section>
<?php echo $this->element("Softwares/metrics", ['software' => $software]) ?>
- </section>
- </div>
- </div>
- </div>
-</div>
\ No newline at end of file
+ </section>
\ No newline at end of file
$this->layout('base');
?>
-<div class="container-fluid" id="page-wrapper">
- <div class="row">
- <div class="col-xs-11 col-xs-offset-1 col-sm-11 col-md-11 col-md-offset-1 col-lg-11 main">
- <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)
- ],
- false
- ); ?>
- </div>
- </div>
- </div>
-</div>
+
+<?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)
+ ],
+ false
+); ?>
$this->layout('base');
?>
-<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="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 )
- ],
- false
- ); ?>
+<?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)
+ ],
+ false
+); ?>
- </div>
- </div>
- </div>
-</div>
$this->layout('base');
?>
-<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="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)
+ ],
+ false
+); ?>
- <?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 )
- ],
- false
- ); ?>
- </div>
- </div>
- </div>
-</div>
$this->layout('base');
?>
-<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="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)
- ],
- false
- ); ?>
-
- </div>
- </div>
- </div>
-</div>
+<?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)
+ ],
+ false
+); ?>
?>
<?php if (!empty( $users ) ): ?>
-<div class="row">
- <div class="col-xs-offset-1 col-xs-10 col-xs-offset-1 col-sm-offset-1 col-sm-10 col-md-10 col-md-offset-1 col-lg-10 main">
- <div class="row">
- <div class="col-xs-12 col-md-12 col-lg-12">
<h2>
<?= __d("Users","Users list for Comptoir du libre")?>
</h2>
- </div>
- </div>
- <section class="row">
+ <section>
<?= $this->Lists->users($users)?>
</section>
- </div>
-</div>
<?php endif; ?>
$this->layout('base');
?>
-<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="row">
<?php
echo $this->Lists->softwareBlock(
\Cake\Utility\Hash::extract($user->providerforsoftwares, '{n}.software'),
"emptyMsg" => __d("ElementEntity","{0} do not povide a software, yet.",$user->username)
],
false
- ); ?>
-
- </div>
- </div>
- </div>
-</div>
+ ); ?>
\ No newline at end of file
<?php
-
$this->layout("base");
?>
<?php if (!empty($users)): ?>
- <div class="row">
- <div
- class="col-xs-offset-1 col-xs-10 col-xs-offset-1 col-sm-offset-1 col-sm-10 col-md-10 col-md-offset-1 col-lg-10 main">
- <div class="row">
- <div class="col-xs-12 col-md-12 col-lg-12">
- <h2>
-
- <?= __d("Users", "Service providers list by Comptoir du libre") ?>
- </h2>
- </div>
- </div>
- <section class="row">
- <?= $this->Lists->users(\Cake\Utility\Hash::extract($users->users, '{n}')) ?>
- </section>
- </div>
- </div>
-<?php endif; ?>
+ <h2>
+ <?= __d("Users", "Service providers list by Comptoir du libre") ?>
+ </h2>
+ <section>
+ <?= $this->Lists->users(\Cake\Utility\Hash::extract($users->users, '{n}')) ?>
+ </section>
+<?php endif; ?>
\ No newline at end of file
$this->layout('base');
?>
-<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="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)
- ],
- false
- ); ?>
- </div>
- </div>
- </div>
-</div>
\ No newline at end of file
+<?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)
+ ],
+ false
+); ?>
\ No newline at end of file
<?php
$this->layout('base');
?>
-<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="row">
- <section>
- <div id="overview-entity">
- <div class=" col-xs-12 col-sm-3 col-md-3 col-lg-3 hidden-xs">
+ <section class="row">
+ <div class=" col-xs-12 col-sm-4 col-md-4 col-lg-4 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">
+ <div class="col-xs-11 col-sm-7 col-md-8 col-lg-8">
<ul class="list-unstyled">
<li>
<h1>
</p>
</div>
</div>
- </div>
</section>
- </div> <!-- END of OVERVIEW-->
+ <!-- END of OVERVIEW-->
- <div class="row">
- <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">
<section>
<?php echo $this->Lists->softwareBlock(
\Cake\Utility\Hash::extract($user->contributionssoftwares, '{n}.software'),
]
); ?>
</section>
- </div>
-
- <div class="row">
- <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">
<section>
<?php
+
echo $this->Lists->softwareBlock(
\Cake\Utility\Hash::extract($user->providerforsoftwares, '{n}.software'),
[
]
); ?>
</section>
- </div>
- <div class="row">
<section>
<?php echo $this->Lists->softwareBlock(
\Cake\Utility\Hash::extract($user->usedsoftwares, '{n}.software'),
"emptyMsg" => __d("ElementEntity", "{0} do not used a software, yet.", $user->username)
]
); ?>
- </section>
- </div>
- </div>
- </div>
-</div>
\ No newline at end of file
+ </section>
\ No newline at end of file
protected $_defaultConfig = [
'templates' => [
- 'review' => '<div {{reviewDiv}}><ol {{reviewOl}}><li {{reviewLi}}><h3>{{title}}</h3></li><li>{{created}}</li><li><div {{starsDiv}}>{{stars}}</div></li><li>{{userName}}</li></ol><p{{reviewComment}}>{{comment}}</p></div>',
+ 'review' => '
+ <li {{reviewLi}}>
+ <div{{attrsReview}}>
+ <h3>{{title}}</h3>
+ <span>{{created}}</span>
+ {{stars}}
+ <span>{{userName}}</span>
+ <p>{{reviewComment}}</p>
+ </div>
+
+ </li>'
+ ,
'stars' => '<span{{attrGlyph}}><span{{attrStar}}>{{content}}</span></span>',
'software' =>
'<li {{attrsColumn}}>
</div>
</li>',
'header' => '<div class="align"><h2>{{sectionTitle}}</h2><span class="allSee" {{attribs}}>{{link}}</span></div>',
- 'footer' => '<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"><div class="addmore">{{link}}</div></div>'
+ 'footer' => '<div class="addmore">{{link}}</div>'
]
];
]);
}
}
- return null !== $result ? $this->Html->tag('ul', $result, ['class' => 'list-unstyled']) : null;
+ return null !== $result ? $this->Html->tag('ul', $result, ['class' => 'row list-unstyled']) : null;
}
/**
COMPTOIR_SRV_URL . $screenshot->url_directory . DS . $screenshot->photo,
['escape' => false])
,
- ['class' => 'size-title"']
+ ['class' => 'size-title screenShot']
)
,
- ["class" => " col-xs-12 col-sm-6 col-md-3 col-lg-3 screenShot"]
+ ["class" => " col-xs-12 col-sm-6 col-md-3 col-lg-3 "]
);
}
}
}
- return null !== $result ? $this->Html->tag(
- 'div',
- $this->Html->tag('ul', $result, ['class' => 'list-unstyled']),
- ["class" => "row"]
- ) : null;
+ return null !== $result ? $this->Html->tag('ul', $result, ['class' => 'row list-unstyled']): null;
}
}
$result .= $this->formatTemplate('review', [
- 'reviewDiv' => $this->templater()->formatAttributes(['class' => "col-xs-11 col-sm-6 col-md-6 col-lg-6 backgroundReview"]),
- 'reviewOl' => $this->templater()->formatAttributes(['class' => "list-unstyled list-inline"]),
- 'reviewLi' => $this->templater()->formatAttributes(['class' => "col-xs-11 col-sm-11 col-md-11 col-lg-11"]),
+ 'reviewLi' => $this->templater()->formatAttributes(['class' => "col-xs-11 col-sm-6 col-md-6 col-lg-6"]),
+ 'attrsReview'=> $this->templater()->formatAttributes(['class' => "backgroundReview"]),
'title' => $this->Text->truncate($review->title, 100, ['ellipsis' => '...', 'exact' => false]),
'userName' => $this->Html->link($this->Text->truncate($review->user->username, 35, ['ellipsis' => '...', 'exact' => false]),
['controller' => 'Users', 'action' => 'view', $review->user->id],
),
'starDiv' => $this->templater()->formatAttributes(['class' => 'ratingStar']),
'stars' => $starsElement . $review->evaluation,
- 'reviewComment' => $this->templater()->formatAttributes(['class' => "col-xs-11 col-sm-11 col-md-11 col-lg-11"]),
- 'comment' => $this->Text->truncate($review->comment, 350, ['ellipsis' => '...', 'exact' => false]),
-
+ 'reviewComment' => $this->Text->truncate($review->comment, 350, ['ellipsis' => '...', 'exact' => false]),
]);
}
}
- return $result;
+ return null !== $result ? $this->Html->tag('ol', $result, ['class' => 'row list-unstyled']): null;
}
public function reviewBlock($items, array $options, $limit = true)
'link' => $participateLink
]
);
-
return $header . $reviewDisplay . $footer;
}
-
}