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
78127198
Commit
78127198
authored
Nov 22, 2015
by
Dominik Rosiek
Browse files
Options
Browse Files
Download
Plain Diff
www
parents
0e028f7e
41c06477
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
7 deletions
+14
-7
__init__.py
BeHub/Hub/migrations/__init__.py
+0
-0
beacon.js
BeHub/Hub/static/js/beacon.js
+3
-3
beacon_list.html
BeHub/Hub/templates/user_panel/content/beacon_list.html
+6
-1
dashboard.html
BeHub/Hub/templates/user_panel/content/dashboard.html
+5
-3
db.sqlite3
BeHub/db.sqlite3
+0
-0
No files found.
BeHub/Hub/migrations/__init__.py
deleted
100644 → 0
View file @
0e028f7e
BeHub/Hub/static/js/beacon.js
View file @
78127198
...
@@ -7,7 +7,7 @@ function show_beacons(){
...
@@ -7,7 +7,7 @@ function show_beacons(){
html
=
[]
html
=
[]
for
(
var
i
=
0
;
i
<
beacon_managers
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
beacon_managers
.
length
;
i
++
){
beacon
=
beacon_managers
[
i
].
beacon
;
beacon
=
beacon_managers
[
i
].
beacon
;
html
.
push
([
'<div class="box">'
,
html
.
push
([
'<div class="box
shadow
">'
,
'<table class="table borderless">'
,
'<table class="table borderless">'
,
'<tbody>'
,
'<tbody>'
,
'<tr>'
,
'<tr>'
,
...
@@ -15,7 +15,7 @@ function show_beacons(){
...
@@ -15,7 +15,7 @@ function show_beacons(){
'<td>'
].
join
(
""
));
'<td>'
].
join
(
""
));
for
(
var
j
=
0
;
j
<
beacon_managers
[
i
].
sites
.
length
;
j
++
){
for
(
var
j
=
0
;
j
<
beacon_managers
[
i
].
sites
.
length
;
j
++
){
html
.
push
([
'<p> <a href="'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'">'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'</a>'
,
html
.
push
([
'<p> <a href="'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'">'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'</a>'
,
'<button onclick="removeLink(
\'
'
,
beacon_managers
[
i
].
url
,
'
\'
,
\'
'
,
beacon_managers
[
i
].
sites
[
j
].
url
,
'
\'
)" class="btn btn-danger" >Usun</button></p>'
].
join
(
""
))
'<
/td><td class="col-md-offset-0">'
,
'<
button onclick="removeLink(
\'
'
,
beacon_managers
[
i
].
url
,
'
\'
,
\'
'
,
beacon_managers
[
i
].
sites
[
j
].
url
,
'
\'
)" class="btn btn-danger" >Usun</button></p>'
].
join
(
""
))
}
}
html
.
push
([
'<p> <button class="btn btn-success">Dodaj link</button></p>'
,
html
.
push
([
'<p> <button class="btn btn-success">Dodaj link</button></p>'
,
'</td>'
,
'</td>'
,
...
@@ -47,7 +47,7 @@ function show_beacons_list(){
...
@@ -47,7 +47,7 @@ function show_beacons_list(){
'<td>'
].
join
(
""
));
'<td>'
].
join
(
""
));
for
(
var
j
=
0
;
j
<
beacon_managers
[
i
].
sites
.
length
;
j
++
){
for
(
var
j
=
0
;
j
<
beacon_managers
[
i
].
sites
.
length
;
j
++
){
html
.
push
([
'<p> <a href="'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'">'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'</a>'
,
html
.
push
([
'<p> <a href="'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'">'
,
beacon_managers
[
i
].
sites
[
j
].
link_url
,
'</a>'
,
'<button onclick="removeLink(
\'
'
,
beacon_managers
[
i
].
url
,
'
\'
,
\'
'
,
beacon_managers
[
i
].
sites
[
j
].
url
,
'
\'
)" class="btn btn-danger" >Usun</button></p>'
].
join
(
""
))
'</td><td class="col-md-offset-0">'
,
'<button onclick="removeLink(
\'
'
,
beacon_managers
[
i
].
url
,
'
\'
,
\'
'
,
beacon_managers
[
i
].
sites
[
j
].
url
,
'
\'
)" class="btn btn-danger" >Usun</button></p>'
].
join
(
""
))
}
}
html
.
push
([
'<p> <button class="btn btn-success">Dodaj link</button></p>'
,
html
.
push
([
'<p> <button class="btn btn-success">Dodaj link</button></p>'
,
'</td>'
,
'</td>'
,
...
...
BeHub/Hub/templates/user_panel/content/beacon_list.html
View file @
78127198
...
@@ -20,6 +20,9 @@
...
@@ -20,6 +20,9 @@
</div>
</div>
</a>
</a>
</div>
<div
class=
"row"
>
<div
class=
"col-md-10 col-md-offset-1"
>
<script>
<script>
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
show_beacons_list
();
show_beacons_list
();
...
@@ -33,7 +36,7 @@
...
@@ -33,7 +36,7 @@
{% include 'user_panel/content/beacon_detail.html' %}
{% include 'user_panel/content/beacon_detail.html' %}
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<!-- Modal -->
...
@@ -120,5 +123,7 @@
...
@@ -120,5 +123,7 @@
});
});
}
}
</script>
</script>
</div>
</div>
{% endblock content %}
{% endblock content %}
\ No newline at end of file
BeHub/Hub/templates/user_panel/content/dashboard.html
View file @
78127198
...
@@ -23,20 +23,22 @@
...
@@ -23,20 +23,22 @@
</a>
</a>
{% for project in user_projects %}
{% for project in user_projects %}
<a
href=
"/project/{{ project.id }}"
>
<div
class=
"col-xs-12 col-sm-6 col-md-6 col-lg-6 col-lg-offset-3"
>
<div
class=
"col-xs-12 col-sm-6 col-md-6 col-lg-6 col-lg-offset-3"
>
<div
class=
"box opacity"
>
<div
class=
"box opacity"
>
<a
href=
"/project/{{ project.id }}"
>
<div
class=
"box-icon"
>
<div
class=
"box-icon"
>
<span
class=
"fa fa-4x fa-html5"
></span>
<span
class=
"fa fa-4x fa-html5"
></span>
</div>
</div>
<div
class=
"info"
>
<div
class=
"info"
>
<h4
class=
"text-center"
>
{{ project.name }}
</h4>
<h4
class=
"text-center"
>
{{ project.name }}
</h4>
<p>
{{ project.description }}
</p>
<p>
{{ project.description }}
</p>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"removeProject(event, {{ project.id }})"
>
Delete
</button>
</div>
</div>
</a>
<button
type=
"button"
class=
"btn btn-danger"
onclick=
"removeProject(event, {{ project.id }})"
>
Delete
</button>
</div>
</div>
</div>
</div>
</a>
{% endfor %}
{% endfor %}
...
...
BeHub/db.sqlite3
0 → 100644
View file @
78127198
File added
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