Translate in french
This commit is contained in:
parent
d199b1611e
commit
c8e12a2dea
1 changed files with 6 additions and 6 deletions
12
tinystatus
12
tinystatus
|
@ -89,9 +89,9 @@ p { color: #B4B4FF; }
|
||||||
EOF
|
EOF
|
||||||
outagenb="$(find "${tmp}/ko" -mindepth 1 | grep -c 'status$')"
|
outagenb="$(find "${tmp}/ko" -mindepth 1 | grep -c 'status$')"
|
||||||
if [ "${outagenb}" -ne 0 ]; then
|
if [ "${outagenb}" -ne 0 ]; then
|
||||||
echo "<ul><li class='panel failed-bg'>${outagenb} Outage(s)</li></ul>"
|
echo "<ul><li class='panel failed-bg'>${outagenb} Incident(s)</li></ul>"
|
||||||
else
|
else
|
||||||
echo "<ul><li class='panel success-bg'>All Systems Operational</li></ul>"
|
echo "<ul><li class='panel success-bg'>Tous Systèmes Operationels</li></ul>"
|
||||||
fi
|
fi
|
||||||
cat << EOF
|
cat << EOF
|
||||||
<h1>Services</h1>
|
<h1>Services</h1>
|
||||||
|
@ -101,23 +101,23 @@ for file in "${tmp}/ko/"*.status; do
|
||||||
[ -e "${file}" ] || continue
|
[ -e "${file}" ] || continue
|
||||||
name="$(basename "${file}" | sed 's,.status$,,')"
|
name="$(basename "${file}" | sed 's,.status$,,')"
|
||||||
status="$(cat "${file}")"
|
status="$(cat "${file}")"
|
||||||
echo "<li>${name} <span class='small failed'>(${status})</span><span class='status failed'>Disrupted</span></li>"
|
echo "<li>${name} <span class='small failed'>(${status})</span><span class='status failed'>Cassé</span></li>"
|
||||||
done
|
done
|
||||||
for file in "${tmp}/ok/"*.status; do
|
for file in "${tmp}/ok/"*.status; do
|
||||||
[ -e "${file}" ] || continue
|
[ -e "${file}" ] || continue
|
||||||
name="$(basename "${file}" | sed 's,.status$,,')"
|
name="$(basename "${file}" | sed 's,.status$,,')"
|
||||||
echo "<li>${name} <span class='status success'>Operational</span></li>"
|
echo "<li>${name} <span class='status success'>Operationel</span></li>"
|
||||||
done
|
done
|
||||||
cat << EOF
|
cat << EOF
|
||||||
</ul>
|
</ul>
|
||||||
<p class=small> Last check: $(date +%FT%T%z)</p>
|
<p class=small> Last check: $(date +%FT%T%z)</p>
|
||||||
EOF
|
EOF
|
||||||
if [ -f "${incidentsfile}" ]; then
|
if [ -f "${incidentsfile}" ]; then
|
||||||
echo '<h1>Incidents</h1>'
|
echo '<h1>Historique des incidents et maintenances</h1>'
|
||||||
if [ -s "${incidentsfile}" ]; then
|
if [ -s "${incidentsfile}" ]; then
|
||||||
sed 's|^\(.*\)$|<p>\1</p>|' "${incidentsfile}"
|
sed 's|^\(.*\)$|<p>\1</p>|' "${incidentsfile}"
|
||||||
else
|
else
|
||||||
echo '<p>No incident reported yet ;)</p>'
|
echo '<p>Aucun incident n'est documenté ;)</p>'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
Loading…
Reference in a new issue