8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 19:33:11 +00:00

Page d'accueil de re2o

This commit is contained in:
chirac 2016-07-19 03:12:48 +02:00
parent 50d273e154
commit 6724128b1d
9 changed files with 88 additions and 2 deletions

View file

@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/1.8/ref/settings/
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os import os
from .settings_local import SECRET_KEY, DATABASES, DEBUG, ALLOWED_HOSTS, ASSO_NAME, ASSO_ADDRESS_LINE1, ASSO_ADDRESS_LINE2, ASSO_SIRET, ASSO_EMAIL, ASSO_PHONE, LOGO_PATH from .settings_local import SECRET_KEY, DATABASES, DEBUG, ALLOWED_HOSTS, ASSO_NAME, ASSO_ADDRESS_LINE1, ASSO_ADDRESS_LINE2, ASSO_SIRET, ASSO_EMAIL, ASSO_PHONE, LOGO_PATH, services_urls
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -47,6 +47,7 @@ INSTALLED_APPS = (
'cotisations', 'cotisations',
'topologie', 'topologie',
'search', 'search',
're2o',
'logs', 'logs',
'rest_framework' 'rest_framework'
) )

View file

@ -0,0 +1,67 @@
{% extends "re2o/sidebar.html" %}
{% load bootstrap3 %}
{% load staticfiles %}
{% block title %}Accueil{% endblock %}
{% block content %}
<h1>Bienvenue sur re2o.rez !</h1>
<div class="row">
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<img src="{% static "logo/zerobin.png" %}" alt="zerobin">
<div class="caption">
<h3>Zerobin</h3>
<p>Le zerobin, un service pour partager un contenu avec un lien. Copier-coller, envoyer ! Le lien peut être à usage unique</p>
<p><a href="{{ services_urls.zerobin }}" class="btn btn-primary" role="button">Accéder au zerobin</a></p>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<img src="{% static "logo/etherpad.png" %}" alt="etherpad">
<div class="caption">
<h3>Etherpad</h3>
<p>Etherpad, un pad collaboratif, ouvert, editable par tous ! Un editeur de texte libre qui permet une édition collaborative
avec un chat</p>
<p><a href="{{ services_urls.etherpad }}" class="btn btn-primary" role="button">Accéder au pad</a></p>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<img src="{% static "logo/gitlab.png" %}" alt="gitlab">
<div class="caption">
<h3>Gitlab</h3>
<p>Découvrez le gitlab hébérgé par nos soins ! Idéal pour vos projets personnels, ou pour des projets collaboratif !
Accès avec votre compte</p>
<p><a href="{{ services_urls.gitlab }}" class="btn btn-primary" role="button">Accéder au gitlab</a></p>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<div class="caption">
<h3>Planner</h3>
<p>Planner, un service pour planifier les événements à plusieurs, et choisir une date commune. Version open source
mise en place par framasoft</p>
<p><a href="{{ services_urls.planner }}" class="btn btn-primary" role="button">Accéder au planner</a></p>
</div>
</div>
</div>
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
<img src="{% static "logo/kanboard.png" %}" alt="kanboard">
<div class="caption">
<h3>Kanboard</h3>
<p>Découvrez kanboard, pour gérer un projet complexe et le diviser en minitaches. Conçu pour travailler en groupe sur
des projets, accessible avec votre compte</p>
<p><a href="{{ services_urls.kanboard }}" class="btn btn-primary" role="button">Accéder au kanboard</a></p>
</div>
</div>
</div>
</div>
{% endblock %}

View file

@ -0,0 +1,4 @@
{% extends "base.html" %}
{% block sidebar %}
{% endblock %}

View file

@ -16,7 +16,7 @@ from django.conf.urls import include, url
from django.contrib import admin from django.contrib import admin
from django.contrib.auth import views as auth_views from django.contrib.auth import views as auth_views
from logs.views import index from .views import index
urlpatterns = [ urlpatterns = [
url(r'^$', index), url(r'^$', index),

14
re2o/views.py Normal file
View file

@ -0,0 +1,14 @@
from django.shortcuts import render
from django.shortcuts import render_to_response, get_object_or_404
from django.core.context_processors import csrf
from django.template import Context, RequestContext, loader
from re2o.settings import services_urls
def form(ctx, template, request):
c = ctx
c.update(csrf(request))
return render_to_response(template, c, context_instance=RequestContext(request))
def index(request):
return form({'services_urls': services_urls}, 're2o/index.html', request)

BIN
static/logo/etherpad.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
static/logo/gitlab.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
static/logo/kanboard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
static/logo/zerobin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB