[ADD] Display PorteAil version on page result

master
Olivier DOSSMANN 2013-06-05 16:46:27 +02:00
parent 84a95fb658
commit fa17a3feb6
3 changed files with 6 additions and 2 deletions

View File

@ -26,6 +26,8 @@
## VARIABLES ## ## VARIABLES ##
VERSION=0.1.2-trunk
## CONFIG PAR DEFAUT ## CONFIG PAR DEFAUT
include paconfigrc include paconfigrc
@ -104,7 +106,7 @@ test:
# création de la page d'accueil # création de la page d'accueil
homepage: homepage:
@$(PROG_ECHO) -e "Création de la page d'accueil…" @$(PROG_ECHO) -e "Création de la page d'accueil…"
@$(PROG_LUA) create_homepage.lua || exit 1 @VERSION=$(VERSION) $(PROG_LUA) create_homepage.lua || exit 1
@$(PROG_ECHO) -e " …terminée." @$(PROG_ECHO) -e " …terminée."
install: install:

View File

@ -25,7 +25,7 @@ ${MENU}
<!-- Footer --> <!-- Footer -->
<footer> <footer>
<p>${POWERED_BY} <a href="http://porteail.e-mergence.org/" title="${POWERED_BY_DESC}">PorteAil</a></p> <p>${POWERED_BY} <a href="http://porteail.e-mergence.org/" title="${POWERED_BY_DESC}">PorteAil ${VERSION}</a></p>
</footer> </footer>
</body> </body>
</html> </html>

View File

@ -29,6 +29,7 @@ local default_css_filename = 'black.css'
local default_css_menu_without = 'without_menu.css' local default_css_menu_without = 'without_menu.css'
local default_css_menu_with = 'with_menu.css' local default_css_menu_with = 'with_menu.css'
-- Other defaults values -- Other defaults values
local version = os.getenv('VERSION') or '(Unknown version)'
local default_categ_extension = 'txt' local default_categ_extension = 'txt'
local DIR_SEP = '/' local DIR_SEP = '/'
local default_css_name = 'Default' local default_css_name = 'Default'
@ -275,6 +276,7 @@ substitutions = {
CSS_COLOR=css_filename, CSS_COLOR=css_filename,
CSS_NAME=css_name, CSS_NAME=css_name,
DEFAULT_CSS=css_menu, DEFAULT_CSS=css_menu,
VERSION=version,
} }
-- Get language configuration -- Get language configuration