Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BeHub-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dominik Rosiek
BeHub-web
Commits
14a51b90
Commit
14a51b90
authored
Nov 22, 2015
by
Rafal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
c0d40359
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
beacon_detail.html
BeHub/Hub/templates/user_panel/content/beacon_detail.html
+7
-5
beacons.html
BeHub/Hub/templates/user_panel/content/beacons.html
+1
-1
project.html
BeHub/Hub/templates/user_panel/content/project.html
+2
-0
views.py
BeHub/Hub/views.py
+1
-1
No files found.
BeHub/Hub/templates/user_panel/content/beacon_detail.html
View file @
14a51b90
{{ project_data }}
{{ beacon }}
<div
class=
"box"
>
<div
class=
"box"
>
<table
class=
"table borderless"
>
<table
class=
"table borderless"
>
<tbody>
<tbody>
<tr>
<tr>
<td
class=
"col-md-2"
>
{{ beacon.name }}
</td>
<td>
Link
<td
class=
"col-md-2"
>
{{ beacon_data.beacon.name }}
</td>
<td>
{% for site in beacon_data.sites %}
<p>
<a
href=
"site.link_url"
>
{{ site.link_url }}
</a></p>
{% endfor %}
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
...
BeHub/Hub/templates/user_panel/content/beacons.html
View file @
14a51b90
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</thead>
</thead>
</table>
</table>
{% for beacon
in project_data.beacons
%}
{% for beacon
_data in beacon_display
%}
{% include 'user_panel/content/beacon_detail.html' %}
{% include 'user_panel/content/beacon_detail.html' %}
{% endfor %}
{% endfor %}
...
...
BeHub/Hub/templates/user_panel/content/project.html
View file @
14a51b90
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-10 col-md-offset-1"
>
<div
class=
"col-md-10 col-md-offset-1"
>
...
...
BeHub/Hub/views.py
View file @
14a51b90
...
@@ -139,6 +139,6 @@ def project(request, project_id):
...
@@ -139,6 +139,6 @@ def project(request, project_id):
my_sites
=
beacon_manager
.
sites
.
filter
(
author
=
request
.
user
.
pk
)
my_sites
=
beacon_manager
.
sites
.
filter
(
author
=
request
.
user
.
pk
)
site_serializer
=
SiteSerializer
(
my_sites
,
many
=
True
,
context
=
{
'request'
:
request
})
site_serializer
=
SiteSerializer
(
my_sites
,
many
=
True
,
context
=
{
'request'
:
request
})
sites_data
=
site_serializer
.
data
sites_data
=
site_serializer
.
data
data
[
'beacon_display'
]
.
append
(
[
beacon_data
,
sites_data
]
)
data
[
'beacon_display'
]
.
append
(
{
'beacon'
:
beacon_data
,
'sites'
:
sites_data
}
)
return
render_to_response
(
'user_panel/content/project.html'
,
data
,
context
)
return
render_to_response
(
'user_panel/content/project.html'
,
data
,
context
)
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