summaryrefslogtreecommitdiffstats
path: root/usr/share/mageiawelcome/helpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'usr/share/mageiawelcome/helpers.py')
-rw-r--r--usr/share/mageiawelcome/helpers.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/usr/share/mageiawelcome/helpers.py b/usr/share/mageiawelcome/helpers.py
index 7fc43e3..c13fb3e 100644
--- a/usr/share/mageiawelcome/helpers.py
+++ b/usr/share/mageiawelcome/helpers.py
@@ -53,19 +53,19 @@ def get_listapp():
mycsv = csv.reader(f,delimiter='|')
next(mycsv)
for r in mycsv:
- if (r[5] == 'false'):
- start_btn = ""
- else:
- start_btn = "<button class='cmd small green' data-run='"+ r[5] + "'><i class='icon-ok-sign'> </i>" + launch +"</button>"
- if (r[6] != ''):
- label = "<span class='label red'>" + r[6] + "</span>"
- else:
- label = ""
- if ( is_installed(r[1]) != 0):# NOT INSTALLED
- listapp += "<li class='" + r[3] +"' id='" + r[0] + "'><img class=icon src=img/" + r[0] + ".png /><div class='chkbox'><input type='checkbox' datasrc='" + r[1] +"'></div> \
+ if (r[5] == 'false'):
+ start_btn = ""
+ else:
+ start_btn = "<button class='cmd small green' data-run='"+ r[5] + "'><i class='icon-ok-sign'> </i>" + launch +"</button>"
+ if (r[6] != ''):
+ label = "<span class='label red'>" + r[6] + "</span>"
+ else:
+ label = ""
+ if ( is_installed(r[1]) != 0):# NOT INSTALLED
+ listapp += "<li class='" + r[3] +"' id='" + r[0] + "'><img class=icon src=img/" + r[0] + ".png /><div class='chkbox'><input type='checkbox' datasrc='" + r[1] +"'></div> \
<h6>" + r[2] + "</h6><p class='description'>" + r[4] + "</p>" + label + "<button class='inst small' data-rpm='" + r[1] + "'><i class='icon-circle-arrow-down'> </i>" + install +"</button></li>"
- else: # INSTALLED
- listapp += "<li class='urpme " + r[3] +"' id='" + r[0] + "'><img class=icon src=img/" + r[0] + ".png /><div class='chkbox'></div> \
+ else: # INSTALLED
+ listapp += "<li class='urpme " + r[3] +"' id='" + r[0] + "'><img class=icon src=img/" + r[0] + ".png /><div class='chkbox'></div> \
<h6>" + r[2] + "</h6><p class='description'>" + r[4] + "</p>" + start_btn + label + "</li>"
return listapp
- \ No newline at end of file
+