Compare commits
13 Commits
3d53772947
...
pkg/stable
Author | SHA1 | Date | |
---|---|---|---|
2aea5ec841 | |||
ed91a16b2b | |||
2878f31113 | |||
28dea4bb81 | |||
5dece858da | |||
7a6aea2238 | |||
ddb6a4d53a | |||
7b7b79e7a6 | |||
972abf50ff | |||
99ea7ad9a5 | |||
5416f122d5 | |||
e180def44b | |||
e82f63a3e1 |
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
7
|
24
debian/control
vendored
Normal file
24
debian/control
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
Source: eole-ninebadge
|
||||
Section: web
|
||||
Priority: optional
|
||||
Maintainer: Cadoles <contact@cadoles.com>
|
||||
Build-Depends: debhelper (>= 7.0.50)
|
||||
Standards-Version: 3.8.4
|
||||
Homepage: https://forge.cadoles.com/Cadoles/ninebadge
|
||||
Vcs-Git: https://forge.cadoles.com/Cadoles/ninebadge
|
||||
Vcs-Browser: https://forge.cadoles.com/Cadoles/ninebadge
|
||||
|
||||
Package: ninebadge-sso
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, eole-sso
|
||||
Description: Filtre SSO pour ninebadge "EOLE".
|
||||
|
||||
Package: eole-ninebadge
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, eole-envole-dependances, ninebadge-sso
|
||||
Description: Eolisation de l'application ninebadge.
|
||||
|
||||
Package: ninebadge-apps
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, envole-dependances-apps
|
||||
Description: Sources pour ninebadge "EOLE".
|
44
debian/copyright
vendored
Normal file
44
debian/copyright
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
Format: http://dep.debian.net/deps/dep5
|
||||
Upstream-Name: {PROJECT}
|
||||
Source: {URL}
|
||||
|
||||
Files: *
|
||||
Copyright: YEAR {UPSTREAM} {AUTHOR} <{MAIL}>
|
||||
License: {UPSTREAM LICENSE}
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2012 Équipe EOLE <eole@ac-dijon.fr>
|
||||
License: CeCILL-2
|
||||
|
||||
License: {UPSTREAM LICENSE}
|
||||
{TEXT OF THE LICENSE}
|
||||
|
||||
License: CeCILL-2
|
||||
This software is governed by the CeCILL-2 license under French law and
|
||||
abiding by the rules of distribution of free software. You can use,
|
||||
modify and or redistribute the software under the terms of the CeCILL-2
|
||||
license as circulated by CEA, CNRS and INRIA at the following URL
|
||||
"http://www.cecill.info";.
|
||||
.
|
||||
As a counterpart to the access to the source code and rights to copy,
|
||||
modify and redistribute granted by the license, users are provided only
|
||||
with a limited warranty and the software's author, the holder of the
|
||||
economic rights, and the successive licensors have only limited
|
||||
liability.
|
||||
.
|
||||
In this respect, the user's attention is drawn to the risks associated
|
||||
with loading, using, modifying and/or developing or reproducing the
|
||||
software by the user in light of its specific status of free software,
|
||||
that may mean that it is complicated to manipulate, and that also
|
||||
therefore means that it is reserved for developers and experienced
|
||||
professionals having in-depth computer knowledge. Users are therefore
|
||||
encouraged to load and test the software's suitability as regards their
|
||||
requirements in conditions enabling the security of their systems and/or
|
||||
data to be ensured and, more generally, to use and operate it in the
|
||||
same conditions as regards security.
|
||||
.
|
||||
The fact that you are presently reading this means that you have had
|
||||
knowledge of the CeCILL-2 license and that you accept its terms.
|
||||
.
|
||||
On Eole systems, the complete text of the CeCILL-2 License can be found
|
||||
in '/usr/share/common-licenses/CeCILL-2-en'.
|
1
debian/eole-ninebadge.install
vendored
Normal file
1
debian/eole-ninebadge.install
vendored
Normal file
@ -0,0 +1 @@
|
||||
usr/share/eole
|
3
debian/gbp.conf
vendored
Normal file
3
debian/gbp.conf
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# Set per distribution debian tag
|
||||
[DEFAULT]
|
||||
debian-tag = debian/envole/%(version)s
|
1
debian/ninebadge-apps.install
vendored
Normal file
1
debian/ninebadge-apps.install
vendored
Normal file
@ -0,0 +1 @@
|
||||
var/www/html
|
1
debian/ninebadge-sso.install
vendored
Normal file
1
debian/ninebadge-sso.install
vendored
Normal file
@ -0,0 +1 @@
|
||||
usr/share/sso
|
8
debian/rules
vendored
Executable file
8
debian/rules
vendored
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
||||
3.0 (native)
|
@ -137,6 +137,8 @@ class TallydayController extends AbstractController
|
||||
$users = $em->getRepository("App:User")->findBy([],["firstname"=>"ASC","lastname"=>"ASC"]);
|
||||
foreach($users as $user) {
|
||||
if($user->hasRole("ROLE_USER")) {
|
||||
|
||||
|
||||
$dates[$user->getId()] = [
|
||||
"id"=>$user->getId(),
|
||||
"avatar"=>$user->getAvatar(),
|
||||
|
@ -65,17 +65,20 @@ class TallydayRepository extends ServiceEntityRepository
|
||||
}
|
||||
|
||||
public function getCapitaltimeinterval($user,$getnovalidate=false) {
|
||||
$datenow=new \DateTime('00:00');
|
||||
$datas = $this->_em->getRepository('App:Tallyday')->findBy(["user"=>$user],["datestart"=>"DESC"]);
|
||||
$tbdays=[];
|
||||
$ework = new \DateTime('00:00');
|
||||
|
||||
// Cumuler les temps de travail sans fuseau
|
||||
$datenow=new \DateTime('00:00');
|
||||
$ework = new \DateTime('00:00', new \DateTimeZone('UTC'));
|
||||
$i=0;
|
||||
foreach($datas as $data) {
|
||||
if($data->getDateof()<$datenow) {
|
||||
$iddayweek=$data->getDateof()->format("w");
|
||||
if($iddayweek>=1&&$iddayweek<=5) {
|
||||
if(!in_array($data->getDateof(),$tbdays)) array_push($tbdays,$data->getDateof());
|
||||
}
|
||||
|
||||
$ework->add($data->getTimeday());
|
||||
}
|
||||
|
||||
@ -84,10 +87,11 @@ class TallydayRepository extends ServiceEntityRepository
|
||||
if($iddayweek>=1&&$iddayweek<=5) {
|
||||
if(!in_array($data->getDateof(),$tbdays)) array_push($tbdays,$data->getDateof());
|
||||
}
|
||||
|
||||
$ework->add($data->getTimeday());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Enlever du temps travailler les heures sup payé
|
||||
$timeextra=$this->_em->getRepository("App:Timeextra")->getTimeextrauser($user, new \DateTime());
|
||||
if($timeextra[1]) {
|
||||
@ -96,7 +100,8 @@ class TallydayRepository extends ServiceEntityRepository
|
||||
|
||||
// Nbday worked
|
||||
$nbdaywork=count($tbdays);
|
||||
$etowork = new \DateTime('00:00');
|
||||
|
||||
$etowork = new \DateTime('00:00', new \DateTimeZone('UTC'));
|
||||
$etowork->add(new \DateInterval("PT".($nbdaywork*7)."H"));
|
||||
|
||||
$interval = $etowork->diff($ework);
|
||||
|
@ -115,13 +115,14 @@ td {
|
||||
{{validate.dateof|date("W")}}
|
||||
</td>
|
||||
|
||||
{% if loop.first %}
|
||||
{% for i in 2..(validate.dateof|date("N")) %}
|
||||
<td></td>
|
||||
{% endfor %}
|
||||
{%endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if loop.first and validate.dateof|date("l")!="Monday"%}
|
||||
{% for i in 2..(validate.dateof|date("N")) %}
|
||||
<td></td>
|
||||
{% endfor %}
|
||||
{%endif %}
|
||||
|
||||
<td style="align:top">
|
||||
<div class="date">{{validate.dateof|date("d/m")}}</div>
|
||||
<div class="datedetail" style="min-height:28px">
|
||||
|
Reference in New Issue
Block a user