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
c0fa808e
Commit
c0fa808e
authored
Mar 08, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use orig_name for title
parent
88f3a009
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
debomatic-webui/public/javascripts/page.js
debomatic-webui/public/javascripts/page.js
+8
-8
No files found.
debomatic-webui/public/javascripts/page.js
View file @
c0fa808e
...
...
@@ -6,9 +6,9 @@ var Page = {
data
=
Utils
.
from_hash_to_data
()
label
=
''
if
(
Utils
.
check_data_file
(
data
))
label
=
data
.
package
.
name
+
'
_
'
+
data
.
package
.
version
+
'
.
'
+
data
.
file
.
name
label
=
data
.
package
.
orig_name
+
'
.
'
+
data
.
file
.
name
else
if
(
Utils
.
check_data_package
(
data
))
label
=
data
.
package
.
name
+
'
_
'
+
data
.
package
.
version
label
=
data
.
package
.
orig_name
else
if
(
Utils
.
check_data_distribution
(
data
))
label
=
data
.
distribution
.
name
$
(
'
#title
'
).
html
(
label
)
...
...
@@ -25,7 +25,7 @@ var Page = {
tmp
.
file
=
null
data
.
distribution
.
packages
.
forEach
(
function
(
p
){
tmp
.
package
=
p
div
=
$
(
'
#packages ul
'
).
append
(
'
<li
><a href="
'
+
Utils
.
from_data_to_hash
(
tmp
)
+
'
">
'
+
p
.
name
+
'
<span>
'
+
p
.
version
+
'
</span></a></li>
'
)
$
(
'
#packages ul
'
).
append
(
'
<li id="package-
'
+
p
.
orig_name
+
'
"
><a href="
'
+
Utils
.
from_data_to_hash
(
tmp
)
+
'
">
'
+
p
.
name
+
'
<span>
'
+
p
.
version
+
'
</span></a></li>
'
)
})
},
...
...
@@ -45,21 +45,22 @@ var Page = {
Page
.
files
.
clean
()
tmp
=
data
if
(
data
.
package
.
files
)
{
selected_file
=
Utils
.
check_data_file
(
data
)
data
.
package
.
files
.
forEach
(
function
(
f
){
tmp
.
file
=
f
$
(
'
#logs ul
'
).
append
(
'
<li
><a nam
e="
'
+
f
.
orig_name
+
'
" href="
'
+
Utils
.
from_data_to_hash
(
tmp
)
+
'
">
'
+
f
.
name
+
'
</a></li>
'
)
$
(
'
#logs ul
'
).
append
(
'
<li
id="file-
'
+
f
.
orig_name
+
'
"><a titl
e="
'
+
f
.
orig_name
+
'
" href="
'
+
Utils
.
from_data_to_hash
(
tmp
)
+
'
">
'
+
f
.
name
+
'
</a></li>
'
)
})
}
if
(
data
.
package
.
debs
)
{
data
.
package
.
debs
.
forEach
(
function
(
f
){
$
(
'
#debs ul
'
).
append
(
'
<li><a
nam
e="
'
+
f
.
orig_name
+
'
" href="
'
+
f
.
path
+
'
">
'
+
f
.
name
+
'
</a> <span>.
'
+
f
.
label
+
'
</span></li>
'
)
$
(
'
#debs ul
'
).
append
(
'
<li><a
titl
e="
'
+
f
.
orig_name
+
'
" href="
'
+
f
.
path
+
'
">
'
+
f
.
name
+
'
</a> <span>.
'
+
f
.
label
+
'
</span></li>
'
)
})
}
if
(
data
.
package
.
archives
)
{
data
.
package
.
archives
.
forEach
(
function
(
f
){
$
(
'
#archives ul
'
).
append
(
'
<li><a
nam
e="
'
+
f
.
orig_name
+
'
" href="
'
+
f
.
path
+
'
">
'
+
f
.
name
+
'
</a></li>
'
)
$
(
'
#archives ul
'
).
append
(
'
<li><a
titl
e="
'
+
f
.
orig_name
+
'
" href="
'
+
f
.
path
+
'
">
'
+
f
.
name
+
'
</a></li>
'
)
})
}
$
(
'
#files
'
).
show
()
...
...
@@ -164,8 +165,7 @@ var Page = {
else
if
(
!
Utils
.
check_data_package
(
old_data
)
||
!
Utils
.
check_data_package
(
data
)
||
data
.
package
.
name
!=
old_data
.
package
.
name
||
data
.
package
.
version
!=
old_data
.
package
.
version
)
data
.
package
.
orig_name
!=
data
.
package
.
orig_name
)
{
Page
.
file
.
clean
()
Page
.
files
.
get
(
data
)
...
...
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