This commit is contained in:
afornerot 2019-07-26 15:03:32 +02:00
parent 8147233340
commit d0dc35ca61
3 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/var/www/html/ninegate/var/logs/*.log { /var/www/html/ninegate/var/logs/*.log {
rotate 15 rotate 5
daily daily
su www-data su www-data
} }

View File

@ -825,7 +825,7 @@ class GroupController extends Controller
if($group->getPages()->isEmpty()) { if($group->getPages()->isEmpty()) {
$page=$this->getDoctrine()->getRepository("CadolesPortalBundle:Page")->clonePage(null,$group->getPagetemplate()); $page=$this->getDoctrine()->getRepository("CadolesPortalBundle:Page")->clonePage(null,$group->getPagetemplate());
$group->addPage($page); $group->addPage($page);
$page->setName("Groupe = ".$group->getLabel()); $page->setName($group->getLabel());
if($access=="user")$page->setUser($this->getUser()); if($access=="user")$page->setUser($this->getUser());
$em->persist($page); $em->persist($page);
@ -838,7 +838,7 @@ class GroupController extends Controller
$calendar=new Calendar(); $calendar=new Calendar();
$key = Uuid::uuid4(); $key = Uuid::uuid4();
$calendar->setName("Groupe = ".$group->getLabel()); $calendar->setName($group->getLabel());
$calendar->setKeyvalue($key); $calendar->setKeyvalue($key);
$calendar->addGroup($group); $calendar->addGroup($group);
$calendar->setColor($group->getColor()); $calendar->setColor($group->getColor());
@ -853,7 +853,7 @@ class GroupController extends Controller
if($group->getBlogs()->isEmpty()) { if($group->getBlogs()->isEmpty()) {
$blog=new Blog(); $blog=new Blog();
$blog->setName("Groupe = ".$group->getLabel()); $blog->setName($group->getLabel());
$blog->addGroup($group); $blog->addGroup($group);
if($access=="user")$blog->setUser($this->getUser()); if($access=="user")$blog->setUser($this->getUser());

View File

@ -29,9 +29,9 @@
{% endif %} {% endif %}
{% if entity.id is defined and page.id==entity.id %} {% if entity.id is defined and page.id==entity.id %}
<li id="menupage-{{page.id}}" class="active" style="cursor:pointer"><a onClick="showPage({{ page.id }},{{ page.pagecategory.id }},'{{ page.canupdate }}','user','{{forcereload}}')">{{ page.name }}</a></li> <li id="menupage-{{page.id}}" class="active" style="cursor:pointer"><a onClick="showPage({{ page.id }},{{ page.pagecategory.id }},'{{ page.canupdate }}','user','{{forcereload}}')"><i class="fa fa-user fa-fw"></i>&nbsp;{{ page.name }}</a></li>
{% else %} {% else %}
<li id="menupage-{{page.id}}"><a style="cursor:pointer" onClick="showPage({{ page.id }},{{ page.pagecategory.id }},'{{ page.canupdate }}','user','{{forcereload}}')">{{ page.name }}</a></li> <li id="menupage-{{page.id}}"><a style="cursor:pointer" onClick="showPage({{ page.id }},{{ page.pagecategory.id }},'{{ page.canupdate }}','user','{{forcereload}}')"><i class="fa fa-user fa-fw"></i>&nbsp;{{ page.name }}</a></li>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
@ -52,7 +52,7 @@
<li id="menupage-{{page.id}}" {{ isactive }} style="cursor:pointer"> <li id="menupage-{{page.id}}" {{ isactive }} style="cursor:pointer">
<a data-group="{{groupshared.id}}" onClick="showPage({{ page.id }},{{ page.pagecategory.id }},'{{ page.canupdate }}','group','{{forcereload}}','{{groupshared.id}}')"> <a data-group="{{groupshared.id}}" onClick="showPage({{ page.id }},{{ page.pagecategory.id }},'{{ page.canupdate }}','group','{{forcereload}}','{{groupshared.id}}')">
Groupe = {{ groupshared.label }} <i class="fa fa-users fa-fw"></i>&nbsp;{{ groupshared.label }}
{% if page.counterread > 0 %} {% if page.counterread > 0 %}
<span id="badge-{{groupshared.id}}" class="badge">{{page.counterread}}</span> <span id="badge-{{groupshared.id}}" class="badge">{{page.counterread}}</span>
{% endif %} {% endif %}
@ -62,7 +62,7 @@
<ul id="pagesshared" class="nav navbar-top-links navbar-left"> <ul id="pagesshared" class="nav navbar-top-links navbar-left">
<li class="dropdown"> <li class="dropdown">
<a data-group="{{groupshared.id}}" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <a data-group="{{groupshared.id}}" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Groupe = {{ groupshared.label }} <i class="fa fa-users fa-fw"></i>&nbsp;{{ groupshared.label }}
<span class="caret"></span> <span class="caret"></span>
{% if groupshared.pagesshared[0].counterread > 0 %} {% if groupshared.pagesshared[0].counterread > 0 %}
<span id="badge-{{groupshared.id}}" class="badge">{{groupshared.pagesshared[0].counterread}}</span> <span id="badge-{{groupshared.id}}" class="badge">{{groupshared.pagesshared[0].counterread}}</span>