Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
djnro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
djnro
Commits
f545b59c
Commit
f545b59c
authored
Nov 03, 2012
by
Leonidas Poulopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added small checks
parent
450099e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
edumanage/views.py
edumanage/views.py
+2
-1
templates/edumanage/welcome.html
templates/edumanage/welcome.html
+1
-1
No files found.
edumanage/views.py
View file @
f545b59c
...
@@ -1343,7 +1343,8 @@ def realmdataxml(request):
...
@@ -1343,7 +1343,8 @@ def realmdataxml(request):
users
=
0
users
=
0
for
inst
in
insts
:
for
inst
in
insts
:
try
:
try
:
users
=
users
+
inst
.
institutiondetails
.
number_user
if
inst
.
institutiondetails
.
number_user
:
users
=
users
+
inst
.
institutiondetails
.
number_user
except
InstitutionDetails
.
DoesNotExist
:
except
InstitutionDetails
.
DoesNotExist
:
pass
pass
nuserCountry
.
text
=
"%s"
%
users
nuserCountry
.
text
=
"%s"
%
users
...
...
templates/edumanage/welcome.html
View file @
f545b59c
...
@@ -167,7 +167,7 @@ $.get("{% url get-service-points %}", function(data){
...
@@ -167,7 +167,7 @@ $.get("{% url get-service-points %}", function(data){
<ul
class=
"nav"
>
<ul
class=
"nav"
>
<li>
<li>
{% load tolocale %}
{% load tolocale %}
<a
class=
"brand"
href=
"{% url manage %}"
style=
"font-size: 14px;"
>
{%
tolocale institution LANGUAGE_CODE
%}
</a>
<a
class=
"brand"
href=
"{% url manage %}"
style=
"font-size: 14px;"
>
{%
if institution_exists %}{% tolocale institution LANGUAGE_CODE %}{% else %}Management{% endif
%}
</a>
</li>
</li>
...
...
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