Skip to content
Snippets Groups Projects
Commit 774b97f6 authored by Bob Mottram's avatar Bob Mottram
Browse files

Message if there are no apps installed

parent 84e3003e
No related branches found
No related tags found
No related merge requests found
...@@ -379,9 +379,11 @@ function web_admin_create_installed_apps { ...@@ -379,9 +379,11 @@ function web_admin_create_installed_apps {
return return
fi fi
cp "$appslist_template_filename" "$appslist_filename" cp "$appslist_template_filename" "$appslist_filename"
sed -i '/<\/body>/d' "$appslist_filename" sed -i '/<\/body>/d' "$appslist_filename"
sed -i '/<\/html>/d' "$appslist_filename" sed -i '/<\/html>/d' "$appslist_filename"
total_apps_ctr=0
installed_apps_ctr=0 installed_apps_ctr=0
app_index=0 app_index=0
# shellcheck disable=SC2068,SC2034 # shellcheck disable=SC2068,SC2034
...@@ -467,6 +469,7 @@ function web_admin_create_installed_apps { ...@@ -467,6 +469,7 @@ function web_admin_create_installed_apps {
sed -i "s|APPDESCRIPTION|${DESCRIPTION}|g" "$filename" sed -i "s|APPDESCRIPTION|${DESCRIPTION}|g" "$filename"
installed_apps_ctr=$((installed_apps_ctr+1)) installed_apps_ctr=$((installed_apps_ctr+1))
total_apps_ctr=$((total_apps_ctr+1))
# four columns per row # four columns per row
if [ $installed_apps_ctr -eq 4 ]; then if [ $installed_apps_ctr -eq 4 ]; then
...@@ -492,6 +495,10 @@ function web_admin_create_installed_apps { ...@@ -492,6 +495,10 @@ function web_admin_create_installed_apps {
echo ' </div>' >> "$appslist_filename" echo ' </div>' >> "$appslist_filename"
fi fi
if [ $total_apps_ctr -gt 0 ]; then
sed -i "/\"appstext\"/d" "$appslist_filename"
fi
{ echo ' <br><br>'; { echo ' <br><br>';
echo ' </body>'; echo ' </body>';
echo '</html>'; } >> "$appslist_filename" echo '</html>'; } >> "$appslist_filename"
......
...@@ -51,6 +51,13 @@ ...@@ -51,6 +51,13 @@
padding: 32px; padding: 32px;
} }
.appstext {
text-align: center;
color: #72a7cf;
font-weight: bold;
font-size: 120;
}
.row { .row {
display: -ms-flexbox; display: -ms-flexbox;
display: flex; display: flex;
...@@ -104,5 +111,7 @@ ...@@ -104,5 +111,7 @@
<br> <br>
<p class="appstext">There are no apps installed. Select the plus button above to install new apps.</p>
</body> </body>
</html> </html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment