Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
debomatic-webui-admins
debomatic-webui
Commits
6648e6ec
Commit
6648e6ec
authored
Mar 10, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added button to download current file
parent
68ed889f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+9
-2
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+1
-0
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
6648e6ec
...
@@ -5,8 +5,15 @@ var Page_Distrubion = {
...
@@ -5,8 +5,15 @@ var Page_Distrubion = {
if
(
!
data
)
if
(
!
data
)
data
=
Utils
.
from_hash_to_data
()
data
=
Utils
.
from_hash_to_data
()
label
=
''
label
=
''
if
(
Utils
.
check_data_file
(
data
))
if
(
Utils
.
check_data_file
(
data
))
{
label
=
data
.
package
.
orig_name
+
'
.
'
+
data
.
file
.
name
complete_name
=
data
.
package
.
orig_name
+
'
.
'
+
data
.
file
.
name
if
(
!
data
.
file
.
path
)
data
.
file
.
path
=
DEBOMATIC_STATIC
+
'
/
'
+
data
.
distribution
.
name
+
'
/pool/
'
+
data
.
package
.
orig_name
+
'
/
'
+
complete_name
label
=
complete_name
+
'
\
<a class="btn btn-link btn-lg" title="Download" href="
'
+
data
.
file
.
path
+
'
">
\
<span class="glyphicon glyphicon-download-alt"></span>
\
</a>
'
}
else
if
(
Utils
.
check_data_package
(
data
))
else
if
(
Utils
.
check_data_package
(
data
))
label
=
data
.
package
.
orig_name
label
=
data
.
package
.
orig_name
else
if
(
Utils
.
check_data_distribution
(
data
))
else
if
(
Utils
.
check_data_distribution
(
data
))
...
...
debomatic-webui/views/layout.ejs
View file @
6648e6ec
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<script
src=
"/libs/bootstrap/3.1.1/js/bootstrap.min.js"
></script>
<script
src=
"/libs/bootstrap/3.1.1/js/bootstrap.min.js"
></script>
<script>
<script>
var
DEBOMATIC_STATIC
=
'
<%= paths.debomatic %>
'
var
AUTOSCROLL
=
<%=
autoscroll
%>
var
AUTOSCROLL
=
<%=
autoscroll
%>
var
DISTRIBUTION_PAGE
=
'
<%= paths.distribution %>
'
var
DISTRIBUTION_PAGE
=
'
<%= paths.distribution %>
'
var
HOSTNAME
=
'
<%= host %><% if (port) { %>:<%= port%><% } %>
'
var
HOSTNAME
=
'
<%= host %><% if (port) { %>:<%= port%><% } %>
'
...
...
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