diff --git a/epicyon-profile.css b/epicyon-profile.css index c7b11a08f..45b41ac4d 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -159,6 +159,12 @@ --header-font: 'Arial, Helvetica, sans-serif'; --button-bottom-margin: 10px; --rendering: normal; + --voteresult-color: #dddddd; + --voteresult-border-color: #aaaaaa; + --voteresult-height: 32px; + --voteresult-height-mobile: 32px; + --voteresult-width: 80%; + --voteresult-width-mobile: 80%; } @font-face { @@ -1724,6 +1730,16 @@ div.container { } .pageslist { } + .voteresult { + width: var(--voteresult-width); + height: var(--voteresult-height); + } + .voteresultbar { + height: var(--voteresult-height); + fill: var(--voteresult-color); + stroke-width: 10; + stroke: var(--voteresult-border-color) + } } @media screen and (min-width: 2200px) { @@ -2429,4 +2445,14 @@ div.container { } .pageslist { } + .voteresult { + width: var(--voteresult-width-mobile); + height: var(--voteresult-height-mobile); + } + .voteresultbar { + height: var(--voteresult-height-mobile); + fill: var(--voteresult-color); + stroke-width: 10; + stroke: var(--voteresult-border-color) + } } diff --git a/webapp_question.py b/webapp_question.py index 49a57e3b4..2918ab1e0 100644 --- a/webapp_question.py +++ b/webapp_question.py @@ -75,7 +75,6 @@ def insertQuestion(baseDir: str, translate: {}, votes = int(questionOption['replies']['totalItems']) except BaseException: print('EX: insertQuestion unable to convert to int') - pass if votes > maxVotes: maxVotes = int(votes+1) @@ -91,18 +90,19 @@ def insertQuestion(baseDir: str, translate: {}, votes = int(questionOption['replies']['totalItems']) except BaseException: print('EX: insertQuestion unable to convert to int 2') - pass votesPercent = str(int(votes * 100 / maxVotes)) + content += \ - '

\n' - content += \ - '

\n' + '

\n' + \ + '
\n' + \ + ' \n' + \ + ' \n' + \ + ' ' + \ + ' \n' + \ + '

\n' + questionCtr += 1 content += '\n' return content