Outils pour utilisateurs

Outils du site


admin:services:forge.chapril.org

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
admin:services:forge.chapril.org [2021/04/11 22:01] – [Favicon] cpmadmin:services:forge.chapril.org [2021/04/11 23:59] – [Personnalisation] cpm
Ligne 404: Ligne 404:
 Basée sur la page https://docs.gitea.io/en-us/customizing-gitea/ Basée sur la page https://docs.gitea.io/en-us/customizing-gitea/
  
 +Le dossier root@grof:/srv/gitea/custom est un dépôt git local.
 +Le but est d'avoir un suivi des modifications.
 ==== Page d'accueil ==== ==== Page d'accueil ====
  
Ligne 422: Ligne 424:
 mkdir -p /srv/gitea/custom/templates mkdir -p /srv/gitea/custom/templates
 cd /srv/gitea/custom/templates cd /srv/gitea/custom/templates
-wget https://raw.githubusercontent.com/go-gitea/gitea/v1.12.5/templates/home.tmpl+wget https://raw.githubusercontent.com/go-gitea/gitea/v1.14.0/templates/home.tmpl
 </code> </code>
  
 Appliquer les changements suivants : Appliquer les changements suivants :
 <code> <code>
-=(^-^)=root@grof:/srv/gitea/custom/templates# diff home.tmpl home.tmpl.ori  +=(^-^)=root@grof:/srv/gitea/custom/templates# diff home.tmpl-1.14.0 home.tmpl 
-2d1 +1a2,7 
-<style type="text/css">.home .hero .svg { color: #1c79c5 !important; }</style> +<style type="text/css"
-7c6 +> .home .hero .svg {color: #1c79c5 !important;} 
-<                               <img class="logo" src="{{StaticUrlPrefix}}/logo-forgechaprilorg.png" />+> .ui.icon.header svg {width: 40px !important; height: 40px !important; display: inline !important; vertical-align: middle !important; margin-right: 5px;} 
 +> .hero {font-weight: bold !important;
 +> .full.height {padding-bottom : 10px !important; } 
 +</style> 
 +6c12 
 +<                               <img class="logo" width="220" height="220" src="{{StaticUrlPrefix}}/img/logo.svg"/>
 --- ---
->                               <img class="logo" src="{{StaticUrlPrefix}}/img/gitea-lg.png" /> +>                               <img class="logo" width="220" height="136" src="{{StaticUrlPrefix}}/logo-forgechaprilorg.png"/> 
-13,14c12 +12c18 
-<                               <h2>Plateforme collaborative de dépôts de logiciels, ressources et contributions libres.</h2> +<                               <h2>{{.i18n.Tr "startpage.app_desc"}}</h2>
-<                               <!--p><a href="https://www.april.org/style="color: #005174"><img src="april-logo-gitea.png/></a>.</p-->+
 --- ---
->                               <h2>{{.i18n.Tr "startpage.app_desc"}}</h2> +>                               <h2>Plateforme collaborative de contributions libres.</h2> 
-21c19 +19c25 
-<                               {{svg "octicon-flame" 16}} Qui peut avoir un compte ?+<                               {{svg "octicon-flame"}} {{.i18n.Tr "startpage.install"}}
 --- ---
->                               {{svg "octicon-flame" 16}} {{.i18n.Tr "startpage.install"}} +>                               {{svg "octicon-flame"}} Qui peut avoir un compte ? 
-24c22 +22c28 
-<                               Tout le monde, cette instance est ouverte au public.+<                               {{.i18n.Tr "startpage.install_desc| Str2html}}
 --- ---
->                               {{.i18n.Tr "startpage.install_desc" | Str2html}} +>                               Tout le monde, cette instance est ouverte au public
-29c27 +27c33 
-<                               {{svg "octicon-device-desktop" 16}} Quels dépôts sont acceptés ?+<                               {{svg "octicon-device-desktop"}} {{.i18n.Tr "startpage.platform"}}
 --- ---
->                               {{svg "octicon-device-desktop" 16}} {{.i18n.Tr "startpage.platform"}} +>                               {{svg "octicon-device-desktop"}} Quels contenus sont acceptés ? 
-32c30 +30c36 
-<                               La forge Chapril accueille tout dépôt dont le contenu est sous licence libre.+<                               {{.i18n.Tr "startpage.platform_desc| Str2html}}
 --- ---
->                               {{.i18n.Tr "startpage.platform_desc" | Str2html}} +>                               La forge Chapril accueille tout type de contenu tel que code source, documentation, graphique, artistique, littéraire, etc
-39c37 +37c43 
-<                               {{svg "octicon-rocket" 16}} Comment créer un compte ?+<                               {{svg "octicon-rocket"}} {{.i18n.Tr "startpage.lightweight"}}
 --- ---
->                               {{svg "octicon-rocket" 16}} {{.i18n.Tr "startpage.lightweight"}} +>                               {{svg "octicon-rocket"}} Comment créer un compte ? 
-42c40 +40c46 
-<                               La création de compte se fait par une procédure d'inscription classique.+<                               {{.i18n.Tr "startpage.lightweight_desc| Str2html}}
 --- ---
->                               {{.i18n.Tr "startpage.lightweight_desc" | Str2html}} +>                               La création de compte se fait par une procédure d'inscription classique
-47c45 +45c51 
-<                               {{svg "octicon-code" 16}} Licences libres+<                               {{svg "octicon-code"}} {{.i18n.Tr "startpage.license"}}
 --- ---
->                               {{svg "octicon-code" 16}} {{.i18n.Tr "startpage.license"}} +>                               {{svg "octicon-code"}} Licences libres 
-50c48 +48c54,55 
-<                               Tous les dépôts présents sur cette forge sont sous licences libres.+<                               {{.i18n.Tr "startpage.license_desc| Str2html}}
 --- ---
->                               {{.i18n.Tr "startpage.license_desc| Str2html}}+>                               Tous les dépôts présents sur cette forge sont sous <b>licences libres</b>, au sens de la Free Software Foundation à l'exception des licences Creative Commons en ND ou NC qui sont exclues.<br/> 
 +>                               <a href="https://www.chapril.org/cgu.html#forgechaprilorg-cpu">Consulter les Conditions particulières d'utilisation</a>.
 </code> </code>
  
Ligne 490: Ligne 497:
 chmod go+r *png chmod go+r *png
 systemctl restart gitea systemctl restart gitea
 +</code>
 +
 +Télécharger la page de code au bon endroit :
 +<code>
 +mkdir -p /srv/gitea/custom/templates/base
 +cd /srv/gitea/custom/templates/base
 +wget https://raw.githubusercontent.com/go-gitea/gitea/release/v1.14/templates/base/head_navbar.tmpl
 +</code>
 +
 +La personnaliser :
 +<code>
 +=(^-^)=root@grof:/srv/gitea/custom/templates/base# diff head_navbar.tmpl-1.14.0 head_navbar.tmpl
 +4c4
 +<                       <img class="ui mini image" with="30" height="30" src="{{StaticUrlPrefix}}/img/logo.svg">
 +---
 +>                       <img class="ui mini image" with="30" height="30" src="{{StaticUrlPrefix}}/img/gitea-sm.png">
 </code> </code>
  
Ligne 506: Ligne 529:
 mv favicon-forgechaprilorg.png favicon.png mv favicon-forgechaprilorg.png favicon.png
 wget https://admin.chapril.org/lib/exe/fetch.php?media=admin:services:favicon-forgechaprilorg.svg wget https://admin.chapril.org/lib/exe/fetch.php?media=admin:services:favicon-forgechaprilorg.svg
-mv favicon-forgechaprilorg.svg favicon.svg+mv favicon-forgechaprilorg.svg logo.svg
 wget https://admin.chapril.org/lib/exe/fetch.php?media=admin:services:logo-forgechaprilorg02.png wget https://admin.chapril.org/lib/exe/fetch.php?media=admin:services:logo-forgechaprilorg02.png
 mv logo-forgechaprilorg02.png gitea-lg.png mv logo-forgechaprilorg02.png gitea-lg.png
Ligne 525: Ligne 548:
 Notamment, vous vous engagez à ce que tous les contenus de vos dépôts soient sous <a href="https://www.gnu.org/licenses/license-list.fr.html">licence libre</a>, au sens de la Free Software Foundation. Notamment, vous vous engagez à ce que tous les contenus de vos dépôts soient sous <a href="https://www.gnu.org/licenses/license-list.fr.html">licence libre</a>, au sens de la Free Software Foundation.
 </div> </div>
-{{template "user/auth/signup_inner" .}}+<div class="page-content user signin{{if .LinkAccountMode}} icon{{end}}"> 
 +        <div class="ui middle very relaxed page grid"> 
 +                {{template "user/auth/signup_inner" .}} 
 +        </div> 
 +</div>
 {{template "base/footer" .}} {{template "base/footer" .}}
 </code> </code>
admin/services/forge.chapril.org.txt · Dernière modification : 2024/01/28 01:25 de pilou