Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f4e871e8
authored
Feb 19, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: use proper template for group-member rendering
parent
f10ae4ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
64 deletions
+20
-64
school/templates/box/person/box.html
+1
-36
school/templates/box/person/entry.html
+19
-28
No files found.
school/templates/box/person/box.html
View file @
f4e871e8
...
@@ -10,42 +10,7 @@
...
@@ -10,42 +10,7 @@
{% block content %}
{% block content %}
<ul
class=
"entry-list"
id=
"group-members"
>
<ul
class=
"entry-list"
id=
"group-members"
>
{% for member in members %}
{% for member in members %}
<li
class=
"entry small-row"
>
{% include "box/person/entry.html" %}
<div
class=
"summary"
>
<div
class=
"name"
>
{% if not member.user %}
{{member.code}}
{% else %}
{{member}} ({{member.code}})
{% endif %}
</div>
<div
class=
"actions"
>
<a
href=
"#"
class=
"remove"
data-gid=
"{{group.id}}"
data-neptun=
"{{member.code}}"
>
<img
src=
"/static/icons/minus-circle.png"
alt=
"{% trans 'Remove' %}"
/>
</a>
</div>
<div
class=
"clear"
></div>
</div>
<div
class=
"details"
>
<div
class=
"container"
>
{% if not member.user %}
{% trans "This user never logged in, no data available" %}
{% else %}
<ul>
<li>
{% trans "Name" %}
<span
class=
"value"
>
{{member}}
</span>
</li>
<li>
{% trans "NEPTUN" %}
<span
class=
"value"
>
{{member.code}}
</span>
</li>
<li>
E-mail:
<span
class=
"value"
><a
href=
"mailto:{{member.user.email}}"
>
{{member.user.email}}
</a></span>
</li>
</ul>
{% endif %}
</div>
</div>
</li>
{% endfor %}
{% endfor %}
<li
class=
"entry small-row"
>
<li
class=
"entry small-row"
>
<div
class=
"summary"
id=
"new-member"
>
<div
class=
"summary"
id=
"new-member"
>
...
...
school/templates/box/person/entry.html
View file @
f4e871e8
...
@@ -3,17 +3,23 @@
...
@@ -3,17 +3,23 @@
{% get_current_language as LANGUAGE_CODE %}
{% get_current_language as LANGUAGE_CODE %}
{% block content %}
{% block content %}
<li
class=
"entry"
>
<li
class=
"entry
small-row"
id=
"member-{{member.code}}
"
>
{{
block.super
}}
{{
block.super
}}
</li>
</li>
{% endblock content %}
{% endblock content %}
{% block summary %}
{% block summary %}
<div
class=
"summary"
>
<div
class=
"summary"
>
<div
class=
"name"
>
{{ group.name }}
</div>
<div
class=
"name"
>
{% if not member.user %}
{{member.code}}
{% else %}
{{member}} ({{member.code}})
{% endif %}
</div>
<div
class=
"actions"
>
<div
class=
"actions"
>
<a
href=
"#"
class=
"
delete"
data-id=
"{{group.id}}"
data-name=
"{{group.nam
e}}"
>
<a
href=
"#"
class=
"
remove"
data-gid=
"{{group.id}}"
data-neptun=
"{{member.cod
e}}"
>
<img
src=
"/static/icons/minus-circle.png"
alt=
"{% trans
"
Delete
"
%}"
/>
<img
src=
"/static/icons/minus-circle.png"
alt=
"{% trans
'Remove'
%}"
/>
</a>
</a>
</div>
</div>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
...
@@ -21,34 +27,19 @@
...
@@ -21,34 +27,19 @@
{% endblock summary %}
{% endblock summary %}
{% block details %}
{% block details %}
<ul>
{% if not member.user %}
<li>
{% trans "This user never logged in, no data available" %}
{% trans "Course" %}:
<span
class=
"value"
>
{% if group.course %}
{{group.course.name}}
{% else %}
{% else %}
{% trans "Not assigned" %}
<ul>
{% endif %}
</span>
</li>
<li>
{% trans "Semester" %}:
<span
class=
"value"
>
{{group.semester.name}}
</span>
</li>
<li>
<li>
{% trans "Owner(s)" %}:
{% trans "Name" %}
<span
class=
"value"
>
{{member}}
</span>
<span
class=
"value"
>
{{group.owner_list}}
</span>
</li>
</li>
<li>
<li>
{% trans "Member count" %}:
{% trans "NEPTUN" %}
<span
class=
"value"
>
{{member.code}}
</span>
<span
class=
"value"
>
{{group.member_count}}
</span>
</li>
</li>
<li>
<li>
E-mail:
<span
class=
"value"
><a
href=
"mailto:{{member.user.email}}"
>
{{member.user.email}}
</a></span>
<span
class=
"value"
>
<a
href=
"/group/show/{{group.id}}"
>
{% trans "More details" %}
</a>
</span>
</li>
</li>
</ul>
</ul>
{% endif %}
{% endblock details %}
{% endblock details %}
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