[ADD] Display PorteAil version on page result
This commit is contained in:
parent
84a95fb658
commit
fa17a3feb6
@ -26,6 +26,8 @@
|
||||
|
||||
## VARIABLES ##
|
||||
|
||||
VERSION=0.1.2-trunk
|
||||
|
||||
## CONFIG PAR DEFAUT
|
||||
include paconfigrc
|
||||
|
||||
@ -104,7 +106,7 @@ test:
|
||||
# création de la page d'accueil
|
||||
homepage:
|
||||
@$(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."
|
||||
|
||||
install:
|
||||
|
@ -25,7 +25,7 @@ ${MENU}
|
||||
<!-- 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>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -29,6 +29,7 @@ local default_css_filename = 'black.css'
|
||||
local default_css_menu_without = 'without_menu.css'
|
||||
local default_css_menu_with = 'with_menu.css'
|
||||
-- Other defaults values
|
||||
local version = os.getenv('VERSION') or '(Unknown version)'
|
||||
local default_categ_extension = 'txt'
|
||||
local DIR_SEP = '/'
|
||||
local default_css_name = 'Default'
|
||||
@ -275,6 +276,7 @@ substitutions = {
|
||||
CSS_COLOR=css_filename,
|
||||
CSS_NAME=css_name,
|
||||
DEFAULT_CSS=css_menu,
|
||||
VERSION=version,
|
||||
}
|
||||
|
||||
-- Get language configuration
|
||||
|
Loading…
Reference in New Issue
Block a user