Browse Source

modificado el Dockerfile para que tome nuestros templates, añadido directorio para seguir la estrucutura original de gitea con los templates

esconder-usuarias
jorge 10 months ago
parent
commit
ee38d32304
  1. 4
      Dockerfile
  2. 13
      templates/explore/users.tmpl
  3. 53
      users.tmpl

4
Dockerfile

@ -35,10 +35,8 @@ RUN ln -s /app/gitea/gitea /usr/local/bin/gitea && \
# Copy mods on templates
# https://docs.gitea.io/en-us/customizing-gitea/#customizing-gitea-pages-and-resources
#
# we do hide 'users' from public listing
RUN mkdir -p /data/templates/explore/
COPY users.tmpl /data/templates/explore/users.tmpl
COPY templates/explore/users.tmpl /data/templates/explore/users.tmpl
VOLUME ["/data"]
ENV GITEA_CUSTOM /data

13
templates/explore/users.tmpl

@ -0,0 +1,13 @@
{{template "base/head" .}}
<div class="page-content explore users">
{{template "explore/navbar" .}}
<div class="ui container">
{{template "explore/search" .}}
<div class="ui user list">
<div>{{$.i18n.Tr "explore.user_no_results"}}</div>
</div>
</div>
</div>
{{template "base/footer" .}}

53
users.tmpl

@ -1,53 +0,0 @@
{{template "base/head" .}}
<div class="page-content home">
<div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column">
<div>
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg"/>
</div>
<div class="hero">
<h1 class="ui icon header title">
{{AppName}}
</h1>
<h2>{{.i18n.Tr "startpage.app_desc"}}</h2>
</div>
</div>
</div>
<div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-flame"}} {{.i18n.Tr "startpage.install"}}
</h1>
<p class="large">
{{.i18n.Tr "startpage.install_desc" | Str2html}}
</p>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-device-desktop"}} {{.i18n.Tr "startpage.platform"}}
</h1>
<p class="large">
{{.i18n.Tr "startpage.platform_desc" | Str2html}}
</p>
</div>
</div>
<div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-rocket"}} {{.i18n.Tr "startpage.lightweight"}}
</h1>
<p class="large">
{{.i18n.Tr "startpage.lightweight_desc" | Str2html}}
</p>
</div>
<div class="eight wide center column">
<h1 class="hero ui icon header">
{{svg "octicon-code"}} {{.i18n.Tr "startpage.license"}}
</h1>
<p class="large">
{{.i18n.Tr "startpage.license_desc" | Str2html}}
</p>
</div>
</div>
</div>
{{template "base/footer" .}}
Loading…
Cancel
Save