Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
cf9648d0
Commit
cf9648d0
authored
Feb 10, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Indicate severity of an error
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
0a7045c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
weblate/html/accounts/profile.html
weblate/html/accounts/profile.html
+4
-4
weblate/html/billing-used.html
weblate/html/billing-used.html
+4
-0
No files found.
weblate/html/accounts/profile.html
View file @
cf9648d0
...
...
@@ -353,22 +353,22 @@
<tr><th>
{% trans "Monthly price" %}
</th><td>
{{ plan.price }} EUR
</td><td></td></tr>
<tr><th>
{% trans "Yearly price" %}
</th><td>
{{ plan.yearly_price }} EUR
</td><td></td></tr>
<tr><th>
{% trans "Strings limit" %}
</th>
{% with plan.display_limit_strings as total and billing.count_strings as used %}
{% with plan.
limit_strings as max and plan.
display_limit_strings as total and billing.count_strings as used %}
{% include "billing-used.html" %}
{% endwith %}
</tr>
<tr><th>
{% trans "Languages limit" %}
</th>
{% with plan.display_limit_languages as total and billing.count_languages as used %}
{% with plan.
limit_languages as max and plan.
display_limit_languages as total and billing.count_languages as used %}
{% include "billing-used.html" %}
{% endwith %}
</tr>
<tr><th>
{% trans "Repositories limit" %}
</th>
{% with plan.display_limit_repositories as total and billing.count_repositories as used %}
{% with plan.
limit_repositories as max and plan.
display_limit_repositories as total and billing.count_repositories as used %}
{% include "billing-used.html" %}
{% endwith %}
</tr>
<tr><th>
{% trans "Projects limit" %}
</th>
{%
with
plan.display_limit_projects as total and billing.projects.count as used %}
{%
with plan.limit_projects as max and
plan.display_limit_projects as total and billing.projects.count as used %}
{% include "billing-used.html" %}
{% endwith %}
</tr>
...
...
weblate/html/billing-used.html
View file @
cf9648d0
...
...
@@ -13,11 +13,15 @@
{% if total == 0 %}
<div
class=
"progress-bar progress-bar-success"
role=
"progressbar"
aria-valuenow=
"100"
aria-valuemin=
"0"
aria-valuemax=
"100"
style=
"width: 100%;"
></div>
{% else %}
{% if used > max %}
<div
class=
"progress-bar progress-bar-danger"
role=
"progressbar"
aria-valuenow=
"100"
aria-valuemin=
"0"
aria-valuemax=
"100"
style=
"width: 100%;"
></div>
{% else %}
{% if used > total %}
<div
class=
"progress-bar progress-bar-warning"
role=
"progressbar"
aria-valuenow=
"100"
aria-valuemin=
"0"
aria-valuemax=
"100"
style=
"width: 100%;"
></div>
{% else %}
<div
class=
"progress-bar progress-bar-success"
role=
"progressbar"
aria-valuenow=
"{{ used }}"
aria-valuemin=
"0"
aria-valuemax=
"{{ total }}"
style=
"width: {% widthratio used total 100 %}%;"
></div>
{% endif %}
{% endif %}
{% endif %}
</div>
</td>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment