+++ /dev/null
-<?php
-
-namespace App\Controller;
-
-use App\Controller\AppController;
-use Cake\Core\Configure;
-
-/**
- * Manage the home page
- */
-class ActionController extends AppController
-{
- public function index()
- {
-
- }
-}
\ No newline at end of file
+++ /dev/null
-<?php
-
-namespace App\Controller;
-
-use App\Controller\AppController;
-use Cake\Core\Configure;
-use Cake\Network\Http\Client;
-
-/**
- * Manage the home page
- */
-class EntityController extends AppController
-{
- /**
- * Get all datas about a user
- */
- public function index()
- {
- try {
- $http = new Client();
- $response = $http->get(COMPTOIR_SRV_API . "users/view/" . $this->request->query('id'), [], ['type' => 'json']);
-
- $userDatas = $response->body('json_decode');
-
- //List of projects created by the user
- $creatorOfSoftwares = $userDatas->creatorOfSoftwares;
- //List of projects use by the user
- $userSoftwares = $userDatas->userSoftwares;
- //List of projects backe by the user
- $backerSoftwares = $userDatas->backerSoftwares;
- //List of projects witch the user contribute
- $contributorSoftwares = $userDatas->contributorSoftwares;
- //List of projects which the user provide for
- $providerForSoftwares = $userDatas->providerForSoftwares;
-
-
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
-
- $this->set('user',$userDatas->user);
- $this->set('creatorOfSoftwares',$creatorOfSoftwares);
- $this->set('userSoftwares', $userSoftwares);
- $this->set('backerSoftwares',$backerSoftwares);
- $this->set('contributorSoftwares',$contributorSoftwares);
- $this->set('providerSoftwares',$providerForSoftwares);
-
- }
- public function getRelationshipsSoftwares()
- {
- try {
- $http = new Client();
- $response = $http->get(COMPTOIR_SRV_API . "relationshipsSoftwaresUsers/getRelationshipsByUserId/", $this->request->query, ['type' => 'json']);
-
- $userDatas = $response->body('json_decode');
-
-
- $relationshipsSoftwaresUser = $userDatas->relationshipsSoftwaresUsers;
-
-
-
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
- $this->set('relationshipsSoftwaresUser',$relationshipsSoftwaresUser);
- }
- public function backerFor()
- {
-
- }
- public function contributorOf()
- {
-
- }
-
- public function providerFor()
- {
-
- }
-}
\ No newline at end of file
+++ /dev/null
-<?php
-
-namespace App\Controller;
-
-use App\Controller\AppController;
-use App\Form\EvaluationForm;
-
-
-class EvaluationController extends AppController
-{
- public function index()
- {
- $evaluation = new EvaluationForm();
- if ($this->request->is('post')) {
- if ($evaluation->execute($this->request->data)) {
-
- }
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-<?php
-
-// Dans un controller
-
-namespace App\Controller;
-
-use App\Controller\AppController;
-use Cake\Network\Http\Client;
-use Cake\Core\Configure;
-use Cake\I18n\Time;
-
-class ProjectController extends AppController {
-
- public $helpers = [ 'Score'];
-
- public function index() {
- try {
- $http = new Client();
-
- $response = $http->get(COMPTOIR_SRV_API . "softwares/", $this->request->query, ['type' => 'json']);
-
- $softwares = $response->body('json_decode');
-
- $datas = (json_decode($response->body, true));
- $this->request->params['paging'] = $datas['paging'];
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
-
- $this->set('softwares', $softwares->softwares);
- }
-
- public function request() {
- try {
- $http = new Client();
- $response = $http->get(COMPTOIR_SRV_API . "request/" . $this->request->query('id'), [], ['type' => 'json']);
- $softwareAndRelationship = $response->body('json_decode');
-
- $RelationshipsUsersOf = $softwareAndRelationship->RelationshipsUsersOf;
- $relationshipsServiceProviders = $softwareAndRelationship->relationshipsServicePorviders;
- $RelationshipsWorksWellWith = $softwareAndRelationship->RelationshipsWorksWellWith;
- $RelationshipsAlternativeTo = $softwareAndRelationship->RelationshipsAlternativeTo;
- $RelationshipsBackerOf = $softwareAndRelationship->RelationshipsBackerOf;
- $RelationshipsCreatedBy = $softwareAndRelationship->RelationshipsCreatedBy;
-
- $software = $softwareAndRelationship->software;
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
-
- $this->set('project', $software);
- $this->set('usersOf', $RelationshipsUsersOf);
- $this->set('relationshipsServicePorviders', $relationshipsServiceProviders);
- $this->set('worksWellWith', $RelationshipsWorksWellWith);
- $this->set('alternativeTo', $RelationshipsAlternativeTo);
- $this->set('backerOf', $RelationshipsBackerOf);
- $this->set('createdBy', $RelationshipsCreatedBy);
- }
-
- /**
- *
- */
- public function backers() {
- try {
-
- $http = new Client();
- $response = $http->get(COMPTOIR_SRV_API . "RelationshipsSoftwaresUsers/getRelationshipsBySoftwareId/", $this->request->query, ['type' => 'json']);
- $softwares = $response->body('json_decode');
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- $this->set([
- $message => "Error",
- $projectSoftwareRelationship => $software
- ]);
- }
- $this->set('projectUsersRelationship', $softwares);
- }
-
- public function alternative() {
- try {
-
- $http = new Client();
- $response = $http->get(COMPTOIR_SRV_API . "RelationshipsSoftwares/getAlternativeToRelationshipsBySoftwareId/" . $this->request->query('id'), [], ['type' => 'json']);
- $softwares = $response->body('json_decode');
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
- $this->set('projectSoftwareRelationship', $softwares);
- }
-
- public function works() {
- try {
-
- $http = new Client();
- $response = $http->get(COMPTOIR_SRV_API . "RelationshipsSoftwares/getWorkingWellRelationshipsBySoftwareId/" . $this->request->query('id'), [], ['type' => 'json']);
- $softwares = $response->body('json_decode');
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
- $this->set('projectSoftwareRelationship', $softwares);
- }
-
- /**
- * Get All review for a software thanks to its id.
- */
- public function reviews() {
- try {
-
- $http = new Client();
- $responseReview = $http->get(COMPTOIR_SRV_API . "reviews/getReviewsBySoftwareId/" . $this->request->query('id'), [], ['type' => 'json']);
-
- $reviews = $responseReview->body('json_decode');
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
- $this->set('reviews', $reviews);
- }
-
- /**
- * Get All metrics for a software thanks to its id.
- */
- public function metrics() {
- try {
-
- $http = new Client();
- $responseReview = $http->get(COMPTOIR_SRV_API . "RawMetricsSoftwares/getRawMetricsBySoftwareId/" . $this->request->query('id'), [], ['type' => 'json']);
-
- $metrics = $responseReview->body('json_decode');
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
- $this->set('metrics', $metrics);
- }
-
- /**
- * Get All users for a software thanks to its id.
- */
- public function users() {
- try {
-
- $http = new Client();
- $response = $http->get(COMPTOIR_SRV_API . "RelationshipsSoftwaresUsers/getUsersOfRelationshipsBySoftwareId/" . $this->request->query('id'), [], ['type' => 'json']);
- $usersOf = $response->body('json_decode');
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
- $this->set('projectUsersrelationship', $usersOf);
- }
-
- /*
- *
- * Test julie & pascal
- */
-
- public function creator() {
- try {
- $http = new Client();
- $response = $http->get(COMPTOIR_SRV_API . "RelationshipsSoftwaresUsers/getCreatorOfRelationshipsBySoftwareId/" . $this->request->query('id'), [], ['type' => 'json']);
- $usersOf = $response->body('json_decode');
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
- $this->set('projectUsersrelationship', $CreatorOf);
- }
-
- public function providers() {
- try {
-
- $http = new Client();
- $response = $http->get(COMPTOIR_SRV_API . "RelationshipsSoftwaresUsers/getProvidersRelationshipsBySoftwareId/" . $this->request->query('id'), [], ['type' => 'json']);
- $usersOf = $response->body('json_decode');
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
- $this->set('projectUsersrelationship', $usersOf);
- }
-
- public function screenshots() {
- try {
-
- $http = new Client();
- $response = $http->get(COMPTOIR_SRV_API . "screenshots/getScreenshotsBySoftwareId/" . $this->request->query('id'), [], ['type' => 'json']);
- $screenshots = $response->body('json_decode');
- } catch (Exception $exception) {
- $this->log(var_export($exception, true), "debug");
- }
- $this->set('screenshotsSoftwares', $screenshots);
- }
-
- /**
- * 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"))]
- ]);
- }
-
-}
+++ /dev/null
-<?php
-
-namespace App\Form;
-
-use Cake\Form\Form;
-use Cake\Form\Schema;
-use Cake\Network\Http\Client;
-use Cake\Core\Configure;
-
-/**
- * Form to push an evaluation.
- */
-class EvaluationForm extends Form
-{
-
- public function __construct(){
- }
-
- /**
- * Form build
- * @param Schema $schema composition of the form
- * @return Schema the form
- */
- protected function _buildSchema(Schema $schema)
- {
- //For comment the rate
- $schema->addField('title', 'string');
- $schema->addField('comment', 'text');
-
- //For rate
- $schema->addField('s1','radio');
- $schema->addField('s2','radio');
- $schema->addField('s3','radio');
- $schema->addField('s4','radio');
- $schema->addField('s5','radio');
-
- //To idetify the rate
- $schema->addField('idSoftware', 'hidden');
- $schema->addField('idEntity', 'hidden');
-
- return $schema;
- }
-
-
- /**
- * Execute when the form have posted datas
- * @param array $data Data return by the form
- * @return boolean
- */
- protected function _execute(array $data)
- {
-
-
- return true;
- }
-
-
-}
\ 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.
- */
-?>
-<?php if (!empty( $backerOfSoftwares ) ): ?>
-<section>
- <div class="align">
- <h2>
- <?= __d("ElementEntity","Backer for ")?>
- </h2>
- <span>
- <?php if ( sizeof( $backerSoftwares ) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("ElementEntity","See all"),
- ['controller' => 'Entity', 'action' => 'getRelationshipsSoftwares','?' => ['id' => $user->id,'filter' =>"BackerOf" ]],
- ['title' => __d("ElementEntity","All projects backed by {0}",$user->username)],
- ['escape' => false] ) ?>
- <?php endif;?>
- </span>
- </div>
- <ul class=" list-unstyled ">
- <?php for ($nbBacker = 0; $nbBacker < Cake\Core\Configure::read("MAX_DISPLAY"); $nbBacker ++): ?>
- <?php if (isset($backerOfSoftwares[$nbBacker] ) ) : ?>
- <li>
- <?php echo $this->cell('SoftwareSummary',[$backerOfSoftwares[$nbBacker]->software_id])->render('../../Element/ProjectPage/softwareSummary')?>
- </li>
- <?php endif; ?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-<?php if (empty( $backerOfSoftwares ) ): ?>
-
-<section>
- <h2>
- <?= __d("ElementEntity","Backer for ")?>
- </h2>
- <p>
- <?php echo __d("ElementEntity","{0} do not backs a software, yet.",$user->username )?>
- </p>
-</section>
-<?php endif; ?>
-
+++ /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.
- */
-?>
-
-<?php if (!empty( $contributorSoftwares ) ): ?>
-<section>
- <div class="align">
- <h2>
- <?= __d("ElementEntity","Contributor for ")?>
- </h2>
- <span>
- <?php if ( sizeof( $contributorSoftwares ) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("ElementEntity","See all"),
- ['controller' => 'Entity', 'action' => 'getRelationshipsSoftwares','?' => ['id' => $user->id,'filter' =>"ContributorTo" ]],
- ['title' => __d("ElementEntity","All projects contributed by {0}",$user->username)],
- ['escape' => false] ) ?>
- <?php endif;?>
- </span>
- </div>
- <ul class=" list-unstyled ">
- <?php for ($nbContrib = 0; $nbContrib < Cake\Core\Configure::read("MAX_DISPLAY"); $nbContrib ++): ?>
- <?php if (isset($contributorSoftwares[$nbContrib] ) ) : ?>
- <li>
- <?php echo $this->cell('SoftwareSummary',[$contributorSoftwares[$nbContrib]->software_id])->render('../../Element/ProjectPage/softwareSummary')?>
- </li>
- <?php endif; ?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-<?php if (empty( $contributorSoftwares ) ): ?>
-<section>
- <h2>
- <?= __d("ElementEntity","Contributor for ")?>
- </h2>
- <p>
- <?php echo __d("ElementEntity","{0} do not contribute to any project, yet.",$user->username )?>
- </p>
-</section>
-
-<?php endif; ?>
+++ /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.
- */
-?>
-<?php if (!empty( $creatorOfSoftwares ) ): ?>
-<section>
- <div class="align">
- <h2>
- <?= __d("ElementEntity","Creator of")?>
- </h2>
- <span>
- <?php if ( sizeof( $creatorOfSoftwares ) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("ElementEntity","See all"),
- ['controller' => 'Entity', 'action' => 'getRelationshipsSoftwares','?' => ['id' => $user->id,'filter' =>"CreatorOf" ]],
- ['title' => __d("ElementEntity","All projects created by {0}",$user->username)],
- ['escape' => false] ) ?>
- <?php endif;?>
- </span>
- </div>
- <ul class=" list-unstyled ">
- <?php for ($nbSoft = 0; $nbSoft < Cake\Core\Configure::read("MAX_DISPLAY"); $nbSoft ++): ?>
- <?php if (isset($creatorOfSoftwares[$nbSoft] ) ) : ?>
- <li>
- <?php echo $this->cell('SoftwareSummary',[$creatorOfSoftwares[$nbSoft]->software_id])->render('../../Element/ProjectPage/softwareSummary')?>
- </li>
- <?php endif; ?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php else : ?>
-<section>
- <h2>
- <?= __d("ElementEntity","Creator of")?>
- </h2>
- <p>
- <?php echo __d("ElementEntity","{0} did not create a software, yet.",$user->username)?>
- </p>
-</section>
-<?php endif; ?>
\ 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.
- */
-
- echo $this->Text->truncate($user->username,20,['ellipsis' => '...','exact' => false] );
-?>
\ No newline at end of file
+++ /dev/null
-<?php
-
-/*
- * Contains the template for the minimal entity block
- */
-?>
-
-<?php if (isset($entity) ) : ?>
-
-<div id="minimal-entity" class="col-xs-6 col-sm-4 col-md-3 col-lg-2 backgroundUnit">
- <h1>
-
- <?= $this->Html->link( $entity['name'],
- ['controller' => 'Entity', 'action' => 'index','?' => ['id' => $entity->name]],
- ['escape' => false] ) ?>
- </h1>
- <?= $this->Html->link( $this->Html->image($entity['logo'],["alt"=>$entity["name"]]),
- $entity->url,
- ['escape' => false] ) ?>
-
- <div>
- <p class="text-overflow">
- <?= $entity['description'] ?>
- </p>
- </div>
-</div>
-<?php endif;?>
-
-<?php
-/*
- * display Users on All users page // display on a software page
- */
-?>
-<?php if (isset($user) ) : ?>
-
-<ul class="list-unstyled col-xs-6 col-sm-4 col-md-3 col-lg-2 size-box minimal-entity backgroundUnit">
- <li>
- <div class="size-title">
- <h3>
- <?= $this->Html->link( $this->Text->truncate($user->username,35,['ellipsis' => '...','exact' => false]),
- ['controller' => 'Users', 'action' => 'view',$user->id],
- ['escape' => false, "title"=>$user->username, "class"=>""] ) ?>
- </h3>
- </div>
- <?php if ( empty ($user->logo_directory) && empty($project->photo) ) : ?>
- <?= $this->Html->link( $this->Html->image( "logos/User_placeholder.jpg" ,
- ["alt"=>$user->username,"class"=>"img-responsive size-logo"]),
- ['controller' => 'Users', 'action' => 'view' ,$user->id],
- ['escape' => false] ) ?>
- <?php else : ?>
- <?= $this->Html->link( $this->Html->image( COMPTOIR_SRV_URL.$user->logo_directory.DS.$user->photo ,
- ["alt"=>$user->username,"class"=>"img-responsive size-logo"]),
- ['controller' => 'Users', 'action' => 'view' ,$user->id],
- ['escape' => false] ) ?>
- <?php endif;?>
- </li>
-</ul>
-
-<?php endif;?>
\ No newline at end of file
+++ /dev/null
-<?php
-
-/**
- * Principal informations about an entity
- */
-?>
-<?php if (isset($user)) : ?>
-<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>
- </div>
-</div>
-<?php endif; ?>
+++ /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.
- */
-?>
-
-<?php if (!empty( $profiderSoftwares ) ): ?>
-<section>
- <div class="align">
- <h2>
- <?= __d("ElementEntity","Provider for")?>
- </h2>
- <span>
- <?php if ( sizeof( $providerSoftwares ) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("ElementEntity","See all"),
- ['controller' => 'Entity', 'action' => 'getRelationshipsSoftwares','?' => ['id' => $user->id,'filter' =>"ServicesProvider" ]],
- ['title' => __d("ElementEntity","All projects provided by {0}",$user->username)],
- ['escape' => false] ) ?>
- <?php endif;?>
- </span>
- </div>
- <ul class=" list-unstyled ">
- <?php for ($nbProvider = 0; $nbProvider < Cake\Core\Configure::read("MAX_DISPLAY"); $nbProvider ++): ?>
- <?php if (isset($profiderSoftwares[$nbProvider] ) ) : ?>
- <li>
- <?php echo $this->cell('SoftwareSummary',[$profiderSoftwares[$nbProvider]->software_id])->render('../../Element/ProjectPage/softwareSummary')?>
- </li>
- <?php endif; ?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-<?php if (empty( $profiderSoftwares ) ): ?>
-<section>
- <h2>
- <?= __d("ElementEntity","Provider for")?>
- </h2>
- <p>
- <?php echo __d("ElementEntity","{0} do not povide a software, yet.",$user->username)?>
- </p>
-</section>
-<?php endif; ?>
\ No newline at end of file
+++ /dev/null
-<?php
-
-/**
- * Template for the services providers for a software
- */
-
-?>
-<?php /*
-<?php if (isset($project) ) : ?>
-<section class="table-responsive">
- <h2>
- <?= __("Software details")?>
- </h2>
- <table class="table" id="software-details">
- <thead>
- <tr>
- <th>
- <?= __("SoftWare") ?>
- </th>
- <th>
- <?= __("Development") ?>
- </th>
- <th>
- <?= __("Integration") ?>
- </th>
- <th>
- <?= __("training") ?>
- </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><?= $project['name']?></td>
- <td><?= $project['avalaibleDevelopt']?></td>
- <td><?= $project['avalaibleIntragation']?></td>
- <td><?= $project['avalaibletraining']?></td>
- </tr>
- <tr>
- <td><?= $project['name']?></td>
- <td><?= $project['avalaibleDevelopt']?></td>
- <td><?= $project['avalaibleIntragation']?></td>
- <td><?= $project['avalaibletraining']?></td>
- </tr>
- <tr>
- <td><?= $project['name']?></td>
- <td><?= $project['avalaibleDevelopt']?></td>
- <td><?= $project['avalaibleIntragation']?></td>
- <td><?= $project['avalaibletraining']?></td>
- </tr>
- <tr>
- <td><?= $project['name']?></td>
- <td><?= $project['avalaibleDevelopt']?></td>
- <td><?= $project['avalaibleIntragation']?></td>
- <td><?= $project['avalaibletraining']?></td>
- </tr>
- <tr>
- <td><?= $project['name']?></td>
- <td><?= $project['avalaibleDevelopt']?></td>
- <td><?= $project['avalaibleIntragation']?></td>
- <td><?= $project['avalaibletraining']?></td>
- </tr>
-
- </tbody>
- </table>
-</section>
-<?php endif; ?>
-
-
-<?php if (!isset($project) ) : ?>
-<section class="table-responsive">
- <h2>
- <?= __("Services")?>
- </h2>
- <table class="table" id="services-provider-details">
- <thead>
- <tr>
- <th>
- <?= __("SoftWare") ?>
- </th>
- <th>
- <?= __("Development") ?>
- </th>
- <th>
- <?= __("Integration") ?>
- </th>
- <th>
- <?= __("training") ?>
- </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Lorem</td>
- <td><span class=" glyphicon glyphicon-ok"> </span>
- <td><span class=" glyphicon glyphicon-ok"> </span></td>
- <td><span class=" glyphicon glyphicon-ok"> </span></td>
- </tr>
- <tr>
- <td>Lorem</td>
- <td><span class=" glyphicon glyphicon-remove"> </span>
- <td><span class=" glyphicon glyphicon-remove"> </span></td>
- <td><span class=" glyphicon glyphicon-ok"> </span></td>
- </tr>
- <tr>
- <td>Lorem</td>
- <td><span class=" glyphicon glyphicon-ok"> </span>
- <td><span class=" glyphicon glyphicon-ok"> </span></td>
- <td><span class=" glyphicon glyphicon-remove"> </span></td>
- </tr>
- <tr>
- <td>Lorem</td>
- <td><span class=" glyphicon glyphicon-remove"> </span>
- <td><span class=" glyphicon glyphicon-remove"> </span></td>
- <td><span class=" glyphicon glyphicon-remove"> </span></td>
- </tr>
- <tr>
- <td>Lorem</td>
- <td><span class=" glyphicon glyphicon-ok"> </span>
- <td><span class=" glyphicon glyphicon-ok"> </span></td>
- <td><span class=" glyphicon glyphicon-remove"> </span></td>
- </tr>
-
-
- </tbody>
- </table>
-</section>
-<?php endif; ?>
- */
- ?>
-
\ 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.
- */
-?>
-<?php if (!empty( $userSoftwares ) ): ?>
-<section>
- <div class="align">
- <h2>
- <?= __d("ElementEntity","User of")?>
- </h2>
- <span>
- <?php if ( sizeof( $userSoftwares ) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("ElementEntity","See all"),
- ['controller' => 'Entity', 'action' => 'getRelationshipsSoftwares','?' => ['id' => $user->id,'filter' =>"UserOf" ]],
- ['title' => __d("ElementEntity","All softwares used by {0}",$user->username)],
- ['escape' => false] ) ?>
- <?php endif;?>
- </span>
- </div>
- <ul class=" list-unstyled ">
- <?php for ($nbUser = 0; $nbUser < Cake\Core\Configure::read("MAX_DISPLAY"); $nbUser ++): ?>
- <?php if (isset($userSoftwares[$nbUser] ) ) : ?>
- <li>
- <?php echo $this->cell('SoftwareSummary',[$userSoftwares[$nbUser]->software_id])->render('../../Element/ProjectPage/softwareSummary')?>
- </li>
- <?php endif; ?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-<?php if (empty( $userSoftwares ) ): ?>
-<section>
- <h2>
- <?= __d("ElementEntity","User of")?>
- </h2>
- <p>
- <?php echo __d("ElementEntity","{0} do not used a software, yet.",$user->username)?>
- </p>
-</section>
-<?php endif; ?>
\ 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.
- */
-
-?>
-
-
-
-<?php if (!isset($json_datas)&& isset($project) ) : ?>
- <div id="minimal-informations" class="col-sm-9 col-md-5">
-
- <header>
- <?= $project['name'] ?>
-
- </header>
-
- <div>
- <?= $this->fetch("Rating") ?>
- <p class="text-overflow">
- <?= $project['description'] ?>
- </p>
- </div>
- </div>
-<?php endif;?>
\ 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.
- */
-
+++ /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.
- */
-
+++ /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.
- */
-
+++ /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.
- */
-
-?>
-
-<?php if (!empty( $alternativeTo ) ): ?>
-<section class="">
- <div class="align">
- <h2>
- <?= __d("ElementProject","Alternative to ")?> <?= __("{0}",$project->softwarename)?>
- </h2>
- <span>
- <?php if ( sizeof ($alternativeTo) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("Layout","See all"),
- ['controller' => 'Project', 'action' => 'alternative','?' => ['id' => $project->id]],
- ['title' => __d("Layout","All alternatives to {0}",$project->softwarename)],
- ['escape' => false] ) ?>
- <?php endif; ?>
- </span>
- </div>
- <ul class=" list-unstyled">
- <?php for ($nbAlternativeTo = 0; $nbAlternativeTo < Cake\Core\Configure::read("MAX_DISPLAY"); $nbAlternativeTo ++): ?>
- <?php if (isset( $alternativeTo[$nbAlternativeTo] ) ) : ?>
- <li>
- <?php echo $this->cell('SoftwareSummary',[$alternativeTo[$nbAlternativeTo]->recipient_id])->render('../../Element/ProjectPage/softwareSummary')?>
- </li>
- <?php endif ;?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-<?php if (isset ($project) && empty( $alternativeTo) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Alternative to ")?> <?= __d("ElementProject","{0}",$project->softwarename)?>
- </h2>
- <p>
- <?php echo __d("ElementProject","No alternative to {0}.",$project->softwarename);?>
- </p>
-</section>
-<?php endif; ?>
-
-<?php if (isset ($projectSoftwareRelationship) && !empty( $projectSoftwareRelationship->relationshipsSoftwares ) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Alternative to ")?> <?php echo $this->cell('SoftwareSummary',[$projectSoftwareRelationship->relationshipsSoftwares[0]->software_id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <ul class=" list-unstyled ">
- <?php foreach ($projectSoftwareRelationship->relationshipsSoftwares as $relationshipsSoftware) : ?>
-
- <li>
- <?php echo $this->cell('SoftwareSummary',[$relationshipsSoftware->recipient_id])->render('../../Element/ProjectPage/softwareSummary')?>
- </li>
-
- <?php endforeach; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-
-<?php if (empty( $projectSoftwareRelationship->relationshipsSoftwares ) && !isset($project) ) : ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Alternative to ")?> <?php echo $this->cell('SoftwareSummary',[$projectSoftwareRelationship->id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <p>
- <?php echo __d("ElementProject","There are no project for ") ?><?php echo $this->cell('SoftwareSummary',[$projectSoftwareRelationship->id])->render('../../Element/ProjectPage/softwareName')?>
- </p>
-</section>
-<?php endif; ?>
\ 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.
- */
-?>
-
-<?php if (!empty( $backerOf ) ): ?>
-<section class="">
- <div class="align">
- <h2>
- <?= __d("ElementProject","Backers for {0}",$project->softwarename)?>
- </h2>
- <span>
- <?php if ( sizeof ($backerOf) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("Layout","See all"),
- ['controller' => 'Project', 'action' => 'backers','?' => ['id' => $project->id,'filter' => "BackerOf"]],
- ['title' => __d("Layout","All backers of {0}",$project->softwarename)],
- ['escape' => false] ) ?>
- <?php endif; ?>
- </span>
- </div>
- <ul class=" list-unstyled">
- <?php for ($nbBacker = 0; $nbBacker < Cake\Core\Configure::read("MAX_DISPLAY"); $nbBacker ++): ?>
- <?php if (isset($backerOf[$nbBacker] ) ) : ?>
- <li>
- <?php echo $this->cell('UserSummary',[$backerOf[$nbBacker]->user_id])->render('../../Element/Entity/entitySummary')?>
- </li>
- <?php endif; ?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-<?php if (isset($project) && empty( $backerOf ) && !isset($projectUsersrelationship) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Backers for {0}",$project->softwarename)?>
- </h2>
- <p>
- <?php echo __d("ElementProject","No financial backer for {0}.",$project->softwarename);?>
- </p>
-</section>
-<?php endif; ?>
-
-<?php if (!isset( $backerOf ) && isset($projectUsersrelationship) && empty($projectUsersrelationship->relationshipsSoftwaresUser)): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Backers for ")?> <?php echo $this->cell('SoftwareSummary',[$projectUsersRelationship->id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <p>
- <?php echo __d("ElementProject","No backers for ");?> <?php echo $this->cell('SoftwareSummary',[$projectUsersRelationship->id])->render('../../Element/ProjectPage/softwareName')?>
- </p>
-</section>
-<?php endif; ?>
-
-
-
-<?php
-/**
- * display all users of the current software.
- */
-?>
-<?php if (isset ($projectUsersRelationship) && !empty( $projectUsersRelationship->relationshipsSoftwaresUser ) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Backers for ")?> <?php echo $this->cell('SoftwareSummary',[$projectUsersRelationship->relationshipsSoftwaresUser[0]->software_id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <ul class=" list-unstyled ">
- <?php foreach ($projectUsersRelationship->relationshipsSoftwaresUser as $relationshipsSoftwaresUser) : ?>
-
- <li>
- <?php echo $this->cell('UserSummary',[$relationshipsSoftwaresUser->user_id])->render('../../Element/Entity/entitySummary')?>
- </li>
-
- <?php endforeach; ?>
- </ul>
-</section>
-<?php endif; ?>
\ 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.
- */
-
-?>
-
-<div id="myCarousel" class="carousel slide col-sm-9 col-md-7" id="software-carousel" data-ride="carousel" data-interval="0">
- <!-- Indicators -->
- <ol class="carousel-indicators">
- <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
- <li data-target="#myCarousel" data-slide-to="1"></li>
-. </ol>
- <div class="carousel-inner" role="listbox">
- <div class="item active">
- <?= $this->Html->image('logos/logo_adullact.JPG', ['class'=>"second-slide",'alt' => 'Second slide'])?>
-
- <div class="container">
- <div class="carousel-caption">
- <h1>
- </h1>
- <p>
- </p>
- </div>
- </div>
- </div>
- <div class="item">
- <?= $this->Html->image('logos/logo_adullact.JPG', ['class'=>"second-slide",'alt' => 'Second slide'])?>
-
- <div class="container">
- <div class="carousel-caption">
-
- <h1>
-
- </h1>
- <p>
-
- </p>
- </div>
- </div>
- </div>
-
- <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
- <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
- <span class="sr-only">Previous</span>
- </a>
- <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
- <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
- <span class="sr-only">Next</span>
- </a>
- </div>
-</div>
\ 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.
- */
-?>
-
-<div class="align">
- <p class="">
- <?= __d("ElementProject","Created by :")?>
- </p>
- <?php if (!empty( $createdBy ) ): ?>
- <span class="align">
- <?php for ($nbCreatedBy = 0; $nbCreatedBy < Cake\Core\Configure::read("MAX_DISPLAY"); $nbCreatedBy ++): ?>
- <?php if (isset($createdBy[$nbCreatedBy] ) ) : ?>
- <?php echo $this->cell('UserSummary',[$createdBy[$nbCreatedBy]->user_id])->render('../../Element/Entity/entityName')?>
- <?php endif; ?>
- <?php endfor; ?>
- </span>
- <?php else : ?>
- <span class="align">
- <?= __d("ElementProject","The creator of {0} is unknown.",$project->softwarename)?>
- </span>
- <?php endif; ?>
-</div>
\ No newline at end of file
+++ /dev/null
-<?php
-
-/**
- * This template represent the details section
- * This section is to provide some informations to guide the user.
- */
-
-?>
-<?php if (isset($project) ) : ?>
-<section class="table-responsive">
- <h2>
- <?= __("Software details")?>
- </h2>
- <table class="table" id="software-details">
-
- <tbody>
- <tr>
- <td><?= __d("ElementProject","Name") ?></td>
- <td><?= $project['name']?></td>
- </tr>
- <tr>
- <td><?= __d("ElementProject","Category") ?></td>
- <td>?</td>
- </tr>
- <tr>
- <td><?= __d("ElementProject","Supported operating systems") ?></td>
- <td>?</td>
- </tr>
- <tr>
- <td><?= __d("ElementProject","Url Forge") ?></td>
- <td>?</td>
- </tr>
- <tr>
- <td><?= __d("ElementProject","Connector") ?></td>
- <td><?= $project['connector_id']?></td>
- </tr>
- <tr>
- <td><?= __d("ElementProject","Licence") ?></td>
- <td>?</td>
- </tr>
- </tbody>
- </table>
-</section>
-<?php endif; ?>
+++ /dev/null
-<?php
-
-/* * *
- * This template merge all templates containing metrics about a software
- * RISCOSS
- * QSOS
- * OPENHUB
- * Others like a custom one
- */
-?>
-
-<section class="metrics row">
-
- <div class="metric-score col-xs-12 col-sm-12 col-md-12 col-lg-12 align">
- <?php
- /**
- * If metrics are in the database
- */
- ?>
-
- <?php if (isset($software) && !empty($software->raw_metrics_software) && !empty($software->softwares_statistics)): ?>
- <h2>
- <?= __d("ElementProject", "Metrics for ") ?> <?php echo $this->cell('SoftwareSummary', [$software->id])->render('../../Element/ProjectPage/softwareName') ?>
-
- <?= $this->Score->prefix(["class" => "", "tag" => "small", "text" => "score : "])?>
- <?= $this->Score->note(isset($software->softwares_statistic->score) ? $software->softwares_statistic->score : null) ?>
-
- </h2>
- </div>
-
-
- <div class="col-xs-11 col-sm-11 col-md-11">
- <h3>
- <?php echo __d("ElementProject","Componants of SourceMetric"); ?>
- </h3>
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <td>
- <?php echo __d("ElementProject","Indicator"); ?>
- </td>
- <td>
- <?php echo __d("ElementProject","Raw value"); ?>
- </td>
- <td>
- <?php echo __d("ElementProject","Points"); ?>
- </td>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($software->raw_metrics_software as $key => $metric) : ?>
- <?php if (!in_array($key, ['id', 'name', 'software_id', 'modified', 'created']) && in_array($key, \Cake\Core\Configure::read("SOURCE_CODE_METRICS"))) :
- ?>
- <tr>
- <td>
- <?php echo __d("ElementProject", $key) ?>
- </td>
- <td>
- <?php echo ($metric == "") ? "NA" : __d("ElementProject", $metric) ;?>
- </td>
- <td>
- <?php
- echo $software->softwares_statistic->$key ;
- ?>
- </td>
- </tr>
- <?php endif; ?>
- <?php endforeach; ?>
- </tbody>
- </table>
- </div>
- <div class="col-xs-11 col-sm-11 col-md-11">
- <h3>
- <?php echo __d("ElementProject","Componants of ComptoirMetric"); ?>
- </h3>
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <td>
- <?php echo __d("ElementProject","Indicator"); ?>
- </td>
- <td>
- <?php echo __d("ElementProject","Raw value"); ?>
- </td>
- <td>
- <?php echo __d("ElementProject","Points"); ?>
- </td>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($software->raw_metrics_software as $key => $metric) : ?>
- <?php if (!in_array($key, ['id', 'name', 'software_id', 'modified', 'created']) && in_array($key, \Cake\Core\Configure::read("COMPTOIR_METRICS"))) :
- ?>
- <tr>
- <td>
- <?php echo __d("ElementProject", $key) ?>
- </td>
- <td>
- <?php echo ($metric == "") ? "NA" : __d("ElementProject", $metric) ;?>
- </td>
- <td>
- <?php
- echo $software->softwares_statistic->$key ;
- ?>
- </td>
- </tr>
- <?php endif; ?>
- <?php endforeach; ?>
- </tbody>
- </table>
- </div>
- <div class="col-xs-12 col-sm-12 col-md-12">
- <h3>
- <?= __d("ElementProject","Calcul du score"); ?>
- </h3>
- <p>
- <?php
- $total = 0;
- $total = $software->softwares_statistic->last_commit_age + $software->softwares_statistic->project_age
- + $software->softwares_statistic->delta_commit_one_month + $software->softwares_statistic->delta_commit_one_year
- + $software->softwares_statistic->nb_contributors + $software->softwares_statistic->contributors_code_percent
- + $software->softwares_statistic->declared_users + $software->softwares_statistic->average_review_score
- + $software->softwares_statistic->screenshots + $software->softwares_statistic->codegouv_label;
- echo __d("ElementProject","The formula for the score is:") . "</br>";
- echo "( " . $software->softwares_statistic->last_commit_age . " + " . $software->softwares_statistic->project_age . " + " .
- $software->softwares_statistic->delta_commit_one_month . " + " . $software->softwares_statistic->delta_commit_one_year . " + " .
- $software->softwares_statistic->nb_contributors . " + " . $software->softwares_statistic->contributors_code_percent . " + " .
- $software->softwares_statistic->declared_users . " + " . $software->softwares_statistic->average_review_score . " + " .
- $software->softwares_statistic->screenshots . " + " . $software->softwares_statistic->codegouv_label;
- echo " ) / 28 = " . $total . " / 28 = ";
- ?>
- <span title="Ceci est le score du logiciel.">
- <?= $this->Score->prefix(["class" => "", "tag" => "span", "text" => ""])?>
- <?= $this->Score->note(isset($software->softwares_statistic->score) ? $software->softwares_statistic->score : null) ?>
- <?= $this->Score->suffix(["template"=>"suffix","class" => "score_percent", "tag" => "span", "text" => "%"])?>
- </span>
- </p>
- </div>
- <?php endif; ?>
-
- <?php
- /**
- * If no metrics in the data base
- */
- ?>
-
- <?php if (isset( $project) && empty( $project->raw_metrics_software) ): ?>
- <h2>
- <?= __d("ElementProject", "Metrics for ") ?> <?php echo $this->cell('SoftwareSummary', [$project->id])->render('../../Element/ProjectPage/softwareName') ?>
-
- <small>
- Score :
- <div class="score <?= $score_level ?>">
- <?php if ( isset($project->softwares_statistic->score) ) : ?>
- <?= round($project->softwares_statistic->score,0) ?>
- <?php else : ?>
- <?php echo __d("ElementProject","NA")?>
- <?php endif;?>
- </div>
- </small>
- </h2>
-</div>
-
-<div class="col-xs-11 col-sm-11 col-md-11">
- <h3>
- <?php echo __d("ElementProject","Componants of SourceMetric"); ?>
- </h3>
- <table class="table table-hover table-bordered">
- <tbody>
- <tr>
- <td>
- <?php echo __d("ElementProject", "project_age") ?>
- </td>
- <td>
- <?php echo __d("ElelementProject", "NA") ?>
- </td>
- </tr>
- <tr>
- <td>
- <?php echo __d("ElementProject", "last_commit_age") ?>
- </td>
- <td>
- <?php echo __d("ElelementProject", "NA") ?>
- </td>
- </tr>
-
- <tr>
- <td>
- <?php echo __d("ElementProject", "high_committer_percent") ?>
- </td>
- <td>
- <?php echo __d("ElelementProject", "NA") ?>
- </td>
- </tr>
-
- <tr>
- <td>
- <?php echo __d("ElementProject", "number_of_contributors") ?>
- </td>
- <td>
- <?php echo __d("ElelementProject", "NA") ?>
- </td>
- </tr>
-
- <tr>
- <td>
- <?php echo __d("ElementProject", "delta_commit_one_month") ?>
- </td>
- <td>
- <?php echo __d("ElelementProject", "NA") ?>
- </td>
- </tr>
-
- <tr>
- <td>
- <?php echo __d("ElementProject", "delta_commit_twelve_month") ?>
- </td>
- <td>
- <?php echo __d("ElelementProject", "NA") ?>
- </td>
- </tr>
- </tbody>
- </table>
-</div>
-<div class="col-xs-11 col-sm-11 col-md-11">
- <h3>
- <?php echo __d("ElementProject","Componants of ComptoirMetric"); ?>
- </h3>
- <table class="table table-hover table-bordered">
- <tbody>
-
- <tr>
- <td>
- <?php echo __d("ElementProject", "declared_users") ?>
- </td>
- <td>
- <?php echo __d("ElelementProject", "NA") ?>
- </td>
- </tr>
- <tr>
- <td>
- <?php echo __d("ElementProject", "average_review_score") ?>
- </td>
- <td>
- <?php echo __d("ElelementProject", "NA") ?>
- </td>
- </tr>
- <tr>
- <td>
- <?php echo __d("ElementProject", "screenshots") ?>
- </td>
- <td>
- <?php echo __d("ElelementProject", "NA") ?>
- </td>
- </tr>
- <tr>
- <td>
- <?php echo __d("ElementProject", "code_gouv_label") ?>
- </td>
- <td>
- <?php echo __d("ElelementProject", "NA") ?>
- </td>
- </tr>
- </tbody>
- </table>
-</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]) ?>
-</div>
-</section>
\ No newline at end of file
+++ /dev/null
-<?php
-
-/**
- * Contains the notes section structure
- * Array $notes contains all notes specified by the administrator of the project.
- * Notes section is present if sizeof($notes)>0.
- */
-
-?>
-
-<?php if (isset($notes) && sizeof(($notes) > 0) ) : ?>
-<section>
-
- <h2>
- <?= __d("ElementProject","Notes")?>
- </h2>
-
- <ol>
- <?php foreach ($notes as $note): ?>
- <li>
- <?= $note ?>
- </li>
- <?php endforeach; ?>
- </ol>
-</section>
-
-<?php endif ; ?>
-
-<?php if (!isset($notes) ) : ?>
-<section>
-
-
- <h2>
- <?= __d("ElementProject","Notes")?>
- </h2>
-
- <ol>
- <li>
- <?= __d("ElementProject","Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")?>
- </li>
- </ol>
-</section>
-
-<?php endif ; ?>
\ No newline at end of file
+++ /dev/null
-<?php
-
-/**
- * Principal informations about an entity
- */
-?>
-
-<?php if (isset($project)) : ?>
-<div class="overview-entity ">
- <div class=" col-xs-12 col-sm-4 col-md-4 col-lg-4 hidden-xs">
- <?php if ( empty ($project->logo_directory) || empty($project->photo)) : ?>
- <?= $this->Html->link( $this->Html->image( "logos/Softwarelogo_placeholder.jpg" ,
- ["alt"=>$project->softwarename,"class"=>"img-responsive size-logo-overview"]),
- ['controller' => 'Project', 'action' => 'request' , '?' => ['id' => $project->id]],
- ['escape' => false] ) ?>
- <?php else :?>
- <?= $this->Html->link($this->Html->image(COMPTOIR_SRV_URL.$project->logo_directory.DS.$project->photo,
- ["alt"=>$project->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>
- <?= $project->softwarename ?>
- </h1>
- <span title=" <?= __d("Project","This score is the mark of the software") ?> ">
- <?= $this->Score->note(isset($project->softwares_statistics[0]->score) ? $project->softwares_statistics[0]->score : null) ?>
- </span>
- </div>
- </li>
- <li>
- <?= $this->Html->link( $project->url_repository,
- $project->url_repository,
- ['escape' => false] ) ?>
- </li>
- <li>
- <p class="text-overflow">
- <?= $project->description ?>
- </p>
- </li>
- <li>
- <p>
- <?= $this->element("ProjectPage/createdBy")?>
- </p>
- </li>
- </ul>
- </div>
-
-</div>
-<?php endif; ?>
+++ /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.
- */
-?>
-
-
-<div class="ratingStar">
- <?php for ($stars = 0; $stars < $evaluation; $stars ++) : ?>
- <span class="glyphicon glyphicon-star"><span class="sr-only">*</span></span>
- <?php endfor; ?>
- <?= $evaluation ?>
-</div>
\ No newline at end of file
+++ /dev/null
-<?php
-
-/**
- * Contains rewiew about a software
- */
-?>
-
-<?php if (isset($project) && $project!=null && !empty( $project->reviews ) ): ?>
-<section class="">
- <div class="align">
- <h2>
- <?= __d("ElementProject","Reviews for")?> <?= __d("ElementProject","{0}",$project->softwarename)?>
- </h2>
- <span>
- <?php if ( sizeof($project->reviews) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("Layout","See all"),
- ['controller' => 'Project', 'action' => 'reviews','?' => ['id' => $project->id]],
- ['title' => __d("Layout","All reviews of {0}",$project->softwarename)],
- ['escape' => false] ) ?>
- <?php endif; ?>
- </span>
- </div>
- <?php for ($nbReview = 0; $nbReview < Cake\Core\Configure::read("MAX_DISPLAY"); $nbReview ++): ?>
- <?php if (isset($project->reviews[$nbReview] ) ) : ?>
-
- <div class="col-xs-11 col-sm-5 col-md-5 col-lg-5">
- <ol class=" list-unstyled list-inline">
- <li class="col-xs-11 col-sm-11 col-md-11 col-lg-11">
- <h3> <?= $this->Text->truncate($project->reviews[$nbReview]->title,100,['ellipsis' => '...','exact' => false] ); ?> </h3>
- </li>
- <li>
- <?php
- echo $this->Time->format(
- strtotime($project->reviews[$nbReview]->created),
- "d-M-Y",//\IntlDateFormatter::SHORT,
- null
- );
- ?>
- </li>
- <li>
- <?php echo $this->cell('UserSummary',[$project->reviews[$nbReview]->user_id])->render('../../Element/Entity/entityName')?>
- </li>
- <li>
- <div class="ratingStar">
- <?= $this->element("ProjectPage/reviewStars",["evaluation" => $project->reviews[$nbReview]->evaluation]) ?>
- </div>
- </li>
- </ol>
- <p class="col-xs-11 col-sm-11 col-md-11 col-lg-11">
- <?= $this->Text->truncate($project->reviews[$nbReview]->comment,350,['ellipsis' => '...','exact' => false] ); ?>
- </p>
- </div>
- <?php endif; ?>
- <?php endfor;?>
-</section>
-<?php endif; ?>
-
-<?php
-
-/**
- * All reviews display
- */
-?>
-
-<?php if (!isset($project) && !empty( $reviews->reviews ) ): ?>
-<section class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <h2>
- <?= __d("ElementProject","Reviews for")?> <?php echo $this->cell('SoftwareSummary',[$reviews->reviews[0]->software_id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
-
- <?php foreach ($reviews->reviews as $review) : ?>
- <div class="col-xs-11 col-sm-6 col-md-6 col-lg-6">
- <ol class=" list-unstyled list-inline">
- <li class="col-xs-11 col-sm-11 col-md-11 col-lg-11">
- <h3> <?php echo $review->title ;?> </h3>
- </li>
- <li>
- <?php echo $review->created ;?>
- </li>
- <li>
- <?php echo $this->cell('UserSummary',[$review->user_id])->render('../../Element/Entity/entityName')?>
- </li>
- <li>
- <div class="ratingStar">
- <?= $this->element("ProjectPage/reviewStars",["evaluation" => $review->evaluation]) ?>
- </div>
- </li>
- </ol>
- <p class="col-xs-11 col-sm-11 col-md-11 col-lg-11">
- <?= $review->comment ; ?>
- </p>
- </div>
- <?php endforeach; ?>
-</section>
-<?php endif; ?>
-
-<?php if (empty( $project->reviews ) && !isset( $reviews ) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Reviews for ")?> <?= __("{0}",$project->softwarename)?>
- </h2>
-
- <p>
- <?php echo __d("ElementProject","Be the first to post a review for {0}.",$project->softwarename)?>
- </p>
-</section>
-<?php endif; ?>
-<?php if (!isset( $project->reviews ) && empty( $reviews->reviews ) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Reviews for ")?> <?php echo $this->cell('SoftwareSummary',[$reviews->id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
-
- <p>
- <?php echo __d("ElementProject","Be the first to post a review for ")?>
- <?php echo $this->cell('SoftwareSummary',[$reviews->id])->render('../../Element/ProjectPage/softwareName').'.'?>
- </p>
-</section>
-<?php endif; ?>
\ 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.
- */
-?>
-
-<div class="software-unit col-xs-12 col-sm-4 col-md-3 col-lg-3">
- <?php
- if (!empty( $project->softwares_statistics ) ){
- if (round($project->softwares_statistics[0]->score,0) < Cake\Core\Configure::read("LOW_MARK")) {
- $score_level = 'score_low';
- } elseif (round($project->softwares_statistics[0]->score,1) < Cake\Core\Configure::read("MEDIUM_MARK")) {
- $score_level = 'score_medium';
- } elseif (round($project->softwares_statistics[0]->score,1) < Cake\Core\Configure::read("HIGH_MARK")) {
- $score_level = 'score_high';
- } elseif (round($project->softwares_statistics[0]->score,1) > Cake\Core\Configure::read("HIGH_MARK")) {
- $score_level = 'score_best';
- } else {
- $score_level ='';
- }
- }else{
- $score_level ='score_low';
- }
- ?>
-
- <h3>
- <?php
- echo $this->Html->link($project->softwarename,
- ['controller' => 'Project', 'action' => 'request' , '?' => ['id' => $project->id]],
- ['escape' => false]);
- ?>
- </h3>
-
- <div class="score <?= $score_level ?>">
- <?php if ( isset($project->softwares_statistics[0]->score) ) : ?>
- <?= round($project->softwares_statistics[0]->score,0) ?>
- <?php else : ?>
- 0
- <?php endif;?>
- </div>
-</div>
\ 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.
- */
-
-?>
-
-<?php
-//debug($project->screenshots);
-/*
- * Affichage des screenshots de la page du projet (controller porject)
- */
-?>
-<?php if (!empty( $project->screenshots ) ) : ?>
-<section class="">
- <div class="align">
- <h2>
- <?= __d("ElementProject","Screenshots of ")?> <?= __d("ElementProject {0}",$project->softwarename)?>
- </h2>
- <span>
- <?php if ( sizeof( $project->screenshots ) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("Layout","See all"),
- ['controller' => 'Project', 'action' => 'screenshots','?' => ['id' => $project->id] ],
- ['title' => __d("Layout","All screenshots of {0}",$project->softwarename)],
- ['escape' => false]) ?>
- <?php endif; ?>
- </span>
- </div>
-
- <ul class=" list-unstyled ">
- <?php for ($nbscreen = 0; $nbscreen < Cake\Core\Configure::read("MAX_DISPLAY"); $nbscreen ++): ?>
- <?php if (isset($project->screenshots[$nbscreen] ) && $project->screenshots[$nbscreen]->url_directory != null ) : ?>
- <li>
- <div class="col-xs-12 col-sm-6 col-md-3 col-lg-3 screenShot">
- <?php if ( !empty ($project->screenshots[$nbscreen]->url_directory) || !empty($project->screenshots[$nbscreen]->photo)) : ?>
- <?php echo $this->Html->link( $this->Html->image( COMPTOIR_SRV_URL . $project->screenshots[$nbscreen]->url_directory . DS . $project->screenshots[$nbscreen]->photo,
- ['alt' => __d("Screenshot of software {0}",$project->softwarename),'class' => 'img-responsive ']) ,
- COMPTOIR_SRV_URL . $project->screenshots[$nbscreen]->url_directory . DS . $project->screenshots[$nbscreen]->photo,
- ['escape' => false] ); ?>
- <?php endif; ?>
- </div>
- </li>
- <?php endif;?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-<?php
-/*
- * Affichge d'un message lorsqu'il n'y a pas de screenshot (controller porject) dans la page du software
- */
-?>
-<?php if ( (empty( $project->screenshots ) && isset($project) ) || ( empty($project->screenshots) && !isset( $screenshotsSoftwares )) ) : ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Screenshots of ")?> <?= __d("ElementProject","{0}",$project->softwarename)?>
- </h2>
- <p>
- <?php echo __d("ElementProject","No screenshot for {0}.",$project->softwarename);?>
- </p>
-</section>
-<?php endif; ?>
-
-<?php
-/*
- * Affichge d'un message lorsqu'il n'y a pas de screenshot (controller porject) dans la page all screenshots
- */
-?>
-<?php if (!isset( $project->screenshots ) && empty($screenshotsSoftwares->screenshotsSoftwares) ) : ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Screenshots of ")?> <?php echo $this->cell('SoftwareSummary',[$screenshotsSoftwares->id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <p>
- <?= __d("ElementProject","No screenshot for ") ;?> <?php echo $this->cell('SoftwareSummary',[$screenshotsSoftwares->id])->render('../../Element/ProjectPage/softwareName')."."?>
- </p>
-</section>
-<?php endif; ?>
-
-<?php
-/*
- * Affichage la liste des scrennshots sur la page all screenshots
- */
-?>
-<?php if (isset ($screenshotsSoftwares) && !empty( $screenshotsSoftwares->screenshotsSoftwares ) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Screenshots for ")?> <?php echo $this->cell('SoftwareSummary',[$screenshotsSoftwares->id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <ul class=" list-unstyled ">
-
- <?php foreach ($screenshotsSoftwares->screenshotsSoftwares as $screenshot) : ?>
- <li>
- <div class="col-xs-12 col-sm-4 col-md-2 col-lg-2 screenShot">
- <?= $this->Html->link ( $this->Html->image(COMPTOIR_SRV_URL.$screenshot->url_directory.DS.$screenshot->photo,
- ['alt' => __d("Screenshot of software {0}",
- $this->cell('SoftwareSummary',[$screenshotsSoftwares->id])->render('../../Element/ProjectPage/softwareName'))
- ,"class" => "img-responsive"]),
- COMPTOIR_SRV_URL.$screenshot->url_directory.DS.$screenshot->photo,
- ['escape' => false] ); ?>
- </div>
- </li>
- <?php endforeach; ?>
- </ul>
-</section>
-<?php endif; ?>
\ 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.
- */
-?>
-<?php if (!empty( $relationshipsServicePorviders ) ): ?>
-<section class="">
- <div class="align">
- <h2>
- <?= __d("ElementProject","Service providers for {0}",$project->softwarename)?>
- </h2>
- <span>
- <?php if ( sizeof ($relationshipsServicePorviders) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("Layout","See all"),
- ['controller' => 'Project', 'action' => 'providers','?' => ['id' => $project->id,'kind' => "servicesProvider"]],
- ['title' => __d("Layout","All service providers of {0}",$project->softwarename)],
- ['escape' => false] ) ?>
- <?php endif; ?>
- </span>
- </div>
- <ul class=" list-unstyled ">
- <?php for ($nbServProvider = 0; $nbServProvider < Cake\Core\Configure::read("MAX_DISPLAY"); $nbServProvider ++): ?>
- <?php if (isset( $relationshipsServicePorviders[$nbServProvider] ) ) : ?>
- <li>
- <?php echo $this->cell('UserSummary',[$relationshipsServicePorviders[$nbServProvider]->user_id])->render('../../Element/Entity/entitySummary')?>
- </li>
- <?php endif; ?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php endif; ?>
-<?php if (isset($project) && empty( $relationshipsServicePorviders ) && !isset($projectUsersrelationship) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Service providers for {0}",$project->softwarename)?>
- </h2>
- <p>
- <?php echo __d("ElementProject","No service provider for {0}.",$project->softwarename);?>
- </p>
-</section>
-<?php endif; ?>
-
-
-<?php if (!isset( $relationshipsServicePorviders ) && isset($projectUsersrelationship) && empty($projectUsersrelationship->relationshipsSoftwaresUser)): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Service providers for ")?> <?php echo $this->cell('SoftwareSummary',[$projectUsersrelationship->id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <p>
- <?php echo __d("ElementProject","No service provider for ");?> <?php echo $this->cell('SoftwareSummary',[$projectUsersrelationship->id])->render('../../Element/ProjectPage/softwareName')?>
- </p>
-</section>
-<?php endif; ?>
-
-<?php
-/**
- * display all users of the current software.
- */
-?>
-<?php if (isset ($projectUsersrelationship) && !empty( $projectUsersrelationship->relationshipsSoftwaresUser ) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Service providers for ")?> <?php echo $this->cell('SoftwareSummary',[$projectUsersrelationship->relationshipsSoftwaresUser[0]->software_id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <ul class=" list-unstyled ">
- <?php foreach ($projectUsersrelationship->relationshipsSoftwaresUser as $relationshipsSoftwaresUser) : ?>
-
- <li>
- <?php echo $this->cell('UserSummary',[$relationshipsSoftwaresUser->user_id])->render('../../Element/Entity/entitySummary')?>
- </li>
-
- <?php endforeach; ?>
- </ul>
-</section>
-<?php endif; ?>
\ No newline at end of file
+++ /dev/null
-<?php
-
- echo $this->Text->truncate($project->softwarename,20,['ellipsis' => '...','exact' => false] );
-
-?>
\ No newline at end of file
+++ /dev/null
-<?php
-
-/**
- * Contains the minimal structure for a software
- * Name
- * URL
- * Rating
- * Logo
- * Forge
- */
-?>
-
-<?php if (isset($project)) : ?>
-
-<ul class="software-unit col-xs-6 col-sm-4 col-md-3 col-lg-2 backgroundUnit list-unstyled">
- <li>
- <h3 class="">
- <?php
- echo $this->Html->link( $this->Text->truncate($project->softwarename,12,['ellipsis' => '...','exact' => false]),
- ['controller' => 'Project', 'action' => 'request' , '?' => ['id' => $project->id]],
- ['escape' => false,"title"=>$project->softwarename, "class"=>"softTitle"]);
- ?>
- </h3>
-
- <div class="software-logo center-block">
-
- <?php if ( empty ($project->logo_directory) || empty($project->photo) ) : ?>
- <?= $this->Html->link( $this->Html->image( "logos/Softwarelogo_placeholder.jpg" ,
- ["alt"=>$project->softwarename,"class"=>"size-logo "]),
- ['controller' => 'Project', 'action' => 'request' , '?' => ['id' => $project->id]],
- ['escape' => false] ) ?>
- <?php else : ?>
- <?= $this->Html->link( $this->Html->image( COMPTOIR_SRV_URL.$project->logo_directory.DS.$project->photo ,
- ["alt"=>$project->softwarename,"class"=>"img-responsive size-logo "]),
- ['controller' => 'Project', 'action' => 'request' ,'?' => ['id' => $project->id]],
- ['escape' => false] ) ?>
- <?php endif;?>
- </div>
-
- <p class="text-overflow project-description">
- <?= $this->Text->truncate($project->description,100,['ellipsis' => '...','exact' => false] ); ?>
- </p>
- </li>
-</ul><!-- .software-unit -->
-<?php endif;?>
-
-
+++ /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.
- */
-
-?>
-
-<section class="row">
- <h2>
- <?= __d("ElementProject","They also use this")?>
- </h2>
-
-
- <div id="minimal-entity" class="col-sm-9 col-md-3">
- <h2>
-
- <?= $this->Html->link( $this->Html->image("logos/logo_adullact.JPG",["alt"=>"logo_adullact","class"=>"img-responsive"]),
- "#",
- ['escape' => false] ) ?>
-
- </h2>
-
- <div>
- <p class="text-overflow">
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
- </p>
- </div>
- </div>
- <div id="minimal-entity" class="col-sm-9 col-md-3">
- <h2>
-
- <?= $this->Html->link( $this->Html->image("logos/logo_adullact.JPG",["alt"=>"logo_adullact","class"=>"img-responsive"]),
- "#",
- ['escape' => false] ) ?>
-
- </h2>
-
- <div>
- <p class="text-overflow">
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
- </p>
- </div>
- </div>
- <div id="minimal-entity" class="col-sm-9 col-md-3">
- <h2>
-
- <?= $this->Html->link( $this->Html->image("logos/logo_adullact.JPG",["alt"=>"logo_adullact","class"=>"img-responsive"]),
- "#",
- ['escape' => false] ) ?>
-
- </h2>
-
- <div>
- <p class="text-overflow">
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
- </p>
- </div>
- </div>
-
-
-</section>
\ No newline at end of file
+++ /dev/null
-<?php
-
-/**
- * Template for the block Also use By
- * List some entities using the software
- */
-?>
-
-
-<?php if (!empty( $usersOf ) && !isset($projectUsersrelationship)): ?>
-<section class="">
- <div class="align">
- <h2>
- <?= __d("ElementProject","Users of {0}",$project->softwarename)?>
- </h2>
- <span>
- <?php if ( sizeof ($usersOf) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("Layout","See all"),
- ['controller' => 'Project', 'action' => 'users','?' => ['id' => $project->id,'kind' => "UserOf"]],
- ['title' => __d("Layout","All users of {0}",$project->softwarename)],
- ['escape' => false] ) ?>
- <?php endif; ?>
- </span>
- </div>
- <ul class=" list-unstyled">
- <?php for ($nbuser = 0; $nbuser < Cake\Core\Configure::read("MAX_DISPLAY"); $nbuser ++): ?>
- <?php if (isset( $usersOf[$nbuser] ) ) : ?>
- <li>
- <?php echo $this->cell('UserSummary',[$usersOf[$nbuser]->user_id])->render('../../Element/Entity/entitySummary')?>
- </li>
- <?php endif; ?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-
-<?php if ((!isset( $usersOf ) || empty($usersOf)) && !isset($projectUsersrelationship)): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Users of {0}",$project->softwarename)?>
- </h2>
- <p>
- <?php echo __d("ElementProject","No user for {0}",$project->softwarename);?>
- </p>
-</section>
-<?php endif; ?>
-
-
-<?php if (!isset( $usersOf ) && isset($projectUsersrelationship) && empty($projectUsersrelationship->relationshipsSoftwaresUser)): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Users of ")?> <?php echo $this->cell('SoftwareSummary',[$projectUsersrelationship->id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <p>
- <?php echo __d("ElementProject","No user for ");?> <?php echo $this->cell('SoftwareSummary',[$projectUsersrelationship->id])->render('../../Element/ProjectPage/softwareName')?>
- </p>
-</section>
-<?php endif; ?>
-
-
-<?php
-/**
- * display all users of the current software.
- */
-?>
-<?php if (isset ($projectUsersrelationship) && !empty( $projectUsersrelationship->relationshipsSoftwaresUser ) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Users of ")?> <?php echo $this->cell('SoftwareSummary',[$projectUsersrelationship->relationshipsSoftwaresUser[0]->software_id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <ul class=" list-unstyled ">
- <?php foreach ($projectUsersrelationship->relationshipsSoftwaresUser as $relationshipsSoftwaresUser) : ?>
-
- <li>
- <?php echo $this->cell('UserSummary',[$relationshipsSoftwaresUser->user_id])->render('../../Element/Entity/entitySummary')?>
- </li>
-
- <?php endforeach; ?>
- </ul>
-</section>
-<?php endif; ?>
+++ /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.
- */
-
+++ /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.
- */
-
-?>
-<?php if (!empty( $worksWellWith ) ): ?>
-<section class="">
- <div class="align">
- <h2>
- <?= __d("ElementProject","Working well with {0}",$project->softwarename)?>
- </h2>
- <span>
- <?php if ( sizeof ($worksWellWith) > Cake\Core\Configure::read("MAX_DISPLAY") ) : ?>
- <?= $this->Html->link( __d("Layout","See all"),
- ['controller' => 'Project', 'action' => 'works','?' => ['id' => $project->id]],
- ['title' => __d("Layout","All softwares working well with {0}",$project->softwarename)],
- ['escape' => false] ) ?>
- <?php endif; ?>
- </span>
- </div>
- <ul class=" list-unstyled ">
- <?php for ($nbWWW = 0; $nbWWW < Cake\Core\Configure::read("MAX_DISPLAY"); $nbWWW ++): ?>
- <?php if (isset( $worksWellWith[$nbWWW] ) ) : ?>
- <li>
- <?php echo $this->cell('SoftwareSummary',[$worksWellWith[$nbWWW]->recipient_id])->render('../../Element/ProjectPage/softwareSummary')?>
- </li>
- <?php endif ;?>
- <?php endfor; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-<?php if (isset ($project) && empty( $project->relationships ) ) : ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Working well with {0}",$project->softwarename)?>
- </h2>
- <p>
- <?php echo __d("ElementProject","There are no project for {0}",$project->softwarename);?>
- </p>
-
-
-</section>
-<?php endif; ?>
-
-
-<?php if (isset ($projectSoftwareRelationship) && !empty( $projectSoftwareRelationship->relationshipsSoftwares ) ): ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Working well with ")?> <?php echo $this->cell('SoftwareSummary',[$projectSoftwareRelationship->relationshipsSoftwares[0]->software_id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <ul class=" list-unstyled ">
- <?php foreach ($projectSoftwareRelationship->relationshipsSoftwares as $relationshipsSoftware) : ?>
-
- <li class="col-xs-6 col-sm-4 col-md-3 col-lg-3">
- <?php echo $this->cell('SoftwareSummary',[$relationshipsSoftware->recipient_id])->render('../../Element/ProjectPage/softwareSummary')?>
- </li>
-
- <?php endforeach; ?>
- </ul>
-</section>
-<?php endif; ?>
-
-<?php if (empty( $projectSoftwareRelationship->relationshipsSoftwares ) && !isset($project) ) : ?>
-<section class="">
- <h2>
- <?= __d("ElementProject","Working well with ")?> <?php echo $this->cell('SoftwareSummary',[$projectSoftwareRelationship->id])->render('../../Element/ProjectPage/softwareName')?>
- </h2>
- <p>
- <?php echo __d("ElementProject","There are no project for ") ?><?php echo $this->cell('SoftwareSummary',[$projectSoftwareRelationship->id])->render('../../Element/ProjectPage/softwareName')?>
- </p>
-
-</section>
-<?php endif; ?>
\ No newline at end of file
+++ /dev/null
-<?php
-
-$this->layout = 'base';
-
-?>
-
-<section class="row">
- <div class="col-xs-11 col-xs-offset-1 col-sm-12 col-md-11 col-md-offset-1 col-lg-11">
- <ul class="list-unstyled">
- <li>
- <?= $this->element("ProjectPage/alternativeTo")?>
- </li>
- </ul>
- </div>
-</section>
\ No newline at end of file
+++ /dev/null
-<?php
-
-$this->layout = 'base';
-
-?>
-
-
-<section class="row">
- <div class="col-xs-11 col-xs-offset-1 col-sm-12 col-md-11 col-md-offset-1 col-lg-11">
- <ul class="list-unstyled">
- <li>
- <?= $this->element("ProjectPage/backers")?>
- </li>
- </ul>
- </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.
- */
-
+++ /dev/null
-<?php
-
-/**
- * Template for the evaluation page for a project
- */
-
-?>
-
-
-
+++ /dev/null
-<?php
-
-$this->layout = 'base'; ?>
-
-<?php if (!empty( $softwares ) ): ?>
-<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">
- <h1>
- <?= __d("ElementProject","Software list for Comptoir du libre")?>
- </h1>
- </div>
- </div>
-
- <div class="row">
- <ul class="list-unstyled">
- <?php foreach ($softwares as $software) {
- $my_output = '<li>';
- $my_output = '<div class="inside">';
- $my_output .= $this->cell('SoftwareSummary',[$software->id])->render('../../Element/ProjectPage/softwareSummary');
- $my_output .= '</div>';
- $my_output .= '</li>';
- echo $my_output;
- }?>
- </ul>
- </div>
-
- <div class="row">
- <div class="col-xs-12 col-md-12 col-lg-12">
- <?= $this->element('Navigation/pagination') ?>
- </div>
- </div>
- </div>
-</div>
-
-<?php endif; ?>
+++ /dev/null
-<?php
-
-/**
- * Template for to show all reviews of a software
- */
-
-$this->layout('base');
-?>
-
-<section class="row">
-
- <ul class="list-unstyled">
- <li>
- <?= $this->element("ProjectPage/metrics")?>
- </li>
- </ul>
-
-
-
-</section>
\ No newline at end of file
+++ /dev/null
-<?php
-
-$this->layout = 'base';
-
-?>
-
-
-<section class="row">
- <div class="col-xs-11 col-xs-offset-1 col-sm-12 col-md-11 col-md-offset-1 col-lg-11">
- <ul class="list-unstyled">
- <li>
- <?= $this->element("ProjectPage/serviceProviders")?>
- </li>
- </ul>
- </div>
-</section>
\ No newline at end of file
+++ /dev/null
-<?php
-$this->layout = 'project';
-
-?>
-
-
+++ /dev/null
-<?php
-
-/**
- * Template for to show all reviews of a software
- */
-
-$this->layout('base');
-?>
-
-<section class="row">
- <div class="col-xs-11 col-xs-offset-1 col-sm-12 col-md-11 col-md-offset-1 col-lg-11">
- <ul class="list-unstyled">
- <li>
- <?= $this->element("ProjectPage/reviews")?>
- </li>
- </ul>
- </div>
-</section>
\ No newline at end of file
+++ /dev/null
-<?php
-
-$this->layout = 'base';
-
-?>
-
-
-<section class="row">
- <div class="col-xs-11 col-xs-offset-1 col-sm-12 col-md-11 col-md-offset-1 col-lg-11">
- <ul class="list-unstyled">
- <li>
- <?= $this->element("ProjectPage/screenShotsList")?>
- </li>
- </ul>
- </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';
-?>
-<section class="row">
- <div class="col-xs-11 col-xs-offset-1 col-sm-12 col-md-11 col-md-offset-1 col-lg-11">
- <ul class="list-unstyled">
- <li>
- <?= $this->element("ProjectPage/usersOfProject")?>
- </li>
- </ul>
- </div>
-</section>
\ No newline at end of file
+++ /dev/null
-<?php
-$this->layout = 'base';
-
-?>
-
-<section class="row">
-
- <ul class="list-unstyled">
- <li>
- <?= $this->element("ProjectPage/worksWellWith")?>
- </li>
- </ul>
-
-</section>
\ No newline at end of file
</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="row">
- <?php if (isset($softwares) && !empty($softwares)) : ?>
- <?php foreach ($softwares->softwares as $project): ?>
- <?= $this->element('ProjectPage/softwareSummary', ['project' => $project] )?>
- <?php endforeach; ?>
- <?php endif; ?>
+ <?= $this->Lists->softwares($softwares->softwares)?>
</div>
</div>
</div>
+++ /dev/null
-<?php
-$this->layout = 'service_provider';
-
-?>