Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
34c98135
authored
May 12, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add plural to blocktrans
parent
a30545c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
circle/dashboard/templates/dashboard/index-groups.html
+5
-1
circle/dashboard/templates/dashboard/index-vm.html
+10
-2
No files found.
circle/dashboard/templates/dashboard/index-groups.html
View file @
34c98135
...
@@ -24,7 +24,11 @@
...
@@ -24,7 +24,11 @@
<a
class=
"btn btn-primary btn-xs"
href=
"{% url "
dashboard
.
views
.
group-list
"
%}"
>
<a
class=
"btn btn-primary btn-xs"
href=
"{% url "
dashboard
.
views
.
group-list
"
%}"
>
<i
class=
"icon-chevron-sign-right"
></i>
<i
class=
"icon-chevron-sign-right"
></i>
{% if more_groups > 0 %}
{% if more_groups > 0 %}
{% blocktrans with more=more_groups %}
<strong>
{{ more }}
</strong>
more{% endblocktrans %}
{% blocktrans count more=more_groups %}
<strong>
{{ more }}
</strong>
more
{% plural %}
<strong>
{{ more }}
</strong>
more
{% endblocktrans %}
{% else %}
{% else %}
{% trans "list" %}
{% trans "list" %}
{% endif %}
{% endif %}
...
...
circle/dashboard/templates/dashboard/index-vm.html
View file @
34c98135
...
@@ -54,7 +54,11 @@
...
@@ -54,7 +54,11 @@
<a
class=
"btn btn-primary btn-xs"
href=
"{% url "
dashboard
.
views
.
vm-list
"
%}"
>
<a
class=
"btn btn-primary btn-xs"
href=
"{% url "
dashboard
.
views
.
vm-list
"
%}"
>
<i
class=
"icon-chevron-sign-right"
></i>
<i
class=
"icon-chevron-sign-right"
></i>
{% if more_instances > 0 %}
{% if more_instances > 0 %}
{% blocktrans with count=more_instances %}
<strong>
{{ count }}
</strong>
more{% endblocktrans %}
{% blocktrans count counter=more_instances %}
<strong>
{{ counter }}
</strong>
more
{% plural %}
<strong>
{{ counter }}
</strong>
more
{% endblocktrans %}
{% else %}
{% else %}
{% trans "list" %}
{% trans "list" %}
{% endif %}
{% endif %}
...
@@ -84,7 +88,11 @@
...
@@ -84,7 +88,11 @@
<div>
<div>
<a
style=
"float: right; margin-top: 17px;"
href=
"{% url "
dashboard
.
views
.
vm-list
"
%}"
class=
"btn btn-primary btn-xs"
>
<a
style=
"float: right; margin-top: 17px;"
href=
"{% url "
dashboard
.
views
.
vm-list
"
%}"
class=
"btn btn-primary btn-xs"
>
<i
class=
"icon-chevron-sign-right"
></i>
<i
class=
"icon-chevron-sign-right"
></i>
{% blocktrans with count=instances|length|add:more_instances %}
<strong>
{{ count }}
</strong>
machines total{% endblocktrans %}
{% blocktrans count counter=instances|length|add:more_instances %}
<strong>
{{ counter }}
</strong>
machine total
{% plural %}
<strong>
{{ counter }}
</strong>
machines total
{% endblocktrans %}
</a>
</a>
<p
class=
"big text-warning"
>
{% blocktrans with count=stopped_vm_num %}
<big>
{{ count }}
</big>
stopped{% endblocktrans %}
</p>
<p
class=
"big text-warning"
>
{% blocktrans with count=stopped_vm_num %}
<big>
{{ count }}
</big>
stopped{% endblocktrans %}
</p>
</div>
</div>
...
...
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