Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a html template for the cdn home page #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions src/aws/cdn-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Aloha Editor CDN</title>

<style>
#page {
width: 756px;
margin: 0 auto;
font-family: Georgia, Serif;
}

#logo {
background-image: url('http://aloha-editor.org/logo/Aloha%20Editor%20HTML5%20sticker%20transparent%20256.png');
width: 256px;
height: 256px;
clear: both;
float: right;
}

#tests {
width: 500px;
float: left;
}

#footer {
clear: both;
padding: 50px 0 0 0;
font-size: 0.8em;
text-align: center;
}
</style>
</head>
<body>
<div id="page">
<div id="logo"></div>
<div id="tests">
<h1 id="qunit-header">Aloha Editor CDN</h1>
<h2>Releases</h2>
<ul>
<release-template>
</ul>
</div>
</div>
<div id="footer">
<p>Copyright &copy; <a href="http://gentics.com">Gentics Software GmbH</a>. All rights reserved. &nbsp;|&nbsp; Report an <a href="https://github.com/alohaeditor/Aloha-Editor/issues">issue</a> &nbsp;|&nbsp; Visit our <a href="http://aloha-editor.org">website</a>
</div>
<a href="https://github.com/alohaeditor/Aloha-Editor/" target="_blank">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
</div>

</body>
</html>
25 changes: 10 additions & 15 deletions src/aws/prepare-clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,15 @@ for dir in `ls` ; do
done


HEADER=$( cat <<EOF
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<title>Aloha Editor - CDN</title>
</head>
<body>
EOF
)
echo $HEADER >> index.html
echo '<ul>' >> index.html
# remove old index.html file
rm -f index.html
TPLDATA="<ul>"
for dir in `ls` ; do
echo "<li>$dir</li>" >> index.html
if [ $dir != 'cdn-template.html' ]
then
TPLDATA="$TPLDATA<li><strong>$dir<\/strong>: <a href=\"\/$dir\/lib\/aloha.js\">aloha.js<\/a> \&middot; <a href=\"\/$dir\/css\/aloha.css\">aloha.css<\/a><\/li>"
fi
done
echo '</ul>' >> index.html
echo '</body>' >> index.html
echo '</html>' >> index.html
TPLDATA="$TPLDATA<\/ul>"

sed -e "s/<release-template>/$TPLDATA/g" ../../cdn-template.html > index.html