Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
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
Kristopher Ruzic
packer
Commits
a900b9de
Commit
a900b9de
authored
Jun 24, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: put popular OS on top
parent
6b4125e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
website/config.rb
website/config.rb
+4
-0
website/source/downloads.html.erb
website/source/downloads.html.erb
+2
-2
No files found.
website/config.rb
View file @
a900b9de
...
...
@@ -22,6 +22,10 @@ response.body.split("\n").each do |line|
$packer_files
[
os
]
<<
filename
end
$packer_os
=
[
"darwin"
,
"linux"
,
"windows"
]
&
$packer_files
.
keys
$packer_os
+=
$packer_files
.
keys
$packer_os
.
uniq!
$packer_files
.
each
do
|
key
,
value
|
value
.
sort!
end
...
...
website/source/downloads.html.erb
View file @
a900b9de
...
...
@@ -20,14 +20,14 @@ page_title: "Downloads"
</p>
</div>
</div>
<%
$packer_
files
.
each
do
|
os
,
file
s
|
%>
<%
$packer_
os
.
each
do
|
o
s
|
%>
<div
class=
"row"
>
<div
class=
"span8 offset2 download"
>
<div
class=
"icon pull-left"
>
<%=
image_tag
"/images/icons/icon_
#{
os
}
.png"
%>
</div>
<div
class=
"details"
>
<h2
class=
"os-name"
>
<%=
download_os_human
(
os
)
%>
</h2>
<ul>
<%
files
.
each
do
|
file
|
%>
<%
$packer_files
[
os
]
.
each
do
|
file
|
%>
<li><a
href=
"
<%=
download_url
(
file
)
%>
"
>
<%=
download_arch
(
file
)
%>
</a></li>
<%
end
%>
</ul>
...
...
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