diff options
author | 2015-04-02 11:09:31 +0200 | |
---|---|---|
committer | 2015-04-02 11:09:31 +0200 | |
commit | b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef (patch) | |
tree | ae0ac2aedd349e4e5757200b5017e12f9a2b5b36 /_includes/partials | |
download | www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.tar.gz www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.tar.bz2 www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.zip |
Initial version
Diffstat (limited to '_includes/partials')
-rw-r--r-- | _includes/partials/download-link-raw.html | 5 | ||||
-rw-r--r-- | _includes/partials/download-link.html | 4 | ||||
-rw-r--r-- | _includes/partials/irc-channel.html | 8 | ||||
-rw-r--r-- | _includes/partials/mailinglist.html | 21 | ||||
-rw-r--r-- | _includes/partials/sponsor.html | 14 |
5 files changed, 52 insertions, 0 deletions
diff --git a/_includes/partials/download-link-raw.html b/_includes/partials/download-link-raw.html new file mode 100644 index 0000000..4113cd0 --- /dev/null +++ b/_includes/partials/download-link-raw.html @@ -0,0 +1,5 @@ +<a href="{{ include.urlprefix }}{{ include.url }}" data-relurl="{{ include.url }}" class="list-group-item download-link {% if include.urlprefix %} download-link-mirrorable{% endif %}"> + <span class="fa fa-download fa-fw"></span> + <strong>{{ include.title }}</strong>{% if include.tag %} <span class="label label-primary download-tag">{{ include.tag }}</span>{% endif %} + <span class="pull-right"><small class="download-date">{{ include.date }}</small> <span class="label label-default download-size hidden-xs">{{ include.size | nice_filesize }}</span></span> +</a>
\ No newline at end of file diff --git a/_includes/partials/download-link.html b/_includes/partials/download-link.html new file mode 100644 index 0000000..14a2939 --- /dev/null +++ b/_includes/partials/download-link.html @@ -0,0 +1,4 @@ +{% capture url %}{{ include.arch }}/autobuilds/{{ site.data.downloads[include.arch][include.type][include.id].filename }}{% endcapture %} +{% assign date = site.data.downloads[include.arch][include.type][include.id].date %} +{% assign size = site.data.downloads[include.arch][include.type][include.id].size %} +{% include partials/download-link-raw.html title=include.title tag=include.tag url=url urlprefix='http://distfiles.gentoo.org/releases/' date=date size=size %}
\ No newline at end of file diff --git a/_includes/partials/irc-channel.html b/_includes/partials/irc-channel.html new file mode 100644 index 0000000..b7e6dba --- /dev/null +++ b/_includes/partials/irc-channel.html @@ -0,0 +1,8 @@ +<tr> + <th> + <a href="irc://irc.gentoo.org/{{ channel.name }}"><tt>#{{ channel.name }}</tt></a> + </th> + <td> + {{ channel.description }} + </td> +</tr>
\ No newline at end of file diff --git a/_includes/partials/mailinglist.html b/_includes/partials/mailinglist.html new file mode 100644 index 0000000..39a9af1 --- /dev/null +++ b/_includes/partials/mailinglist.html @@ -0,0 +1,21 @@ +<tr> + <th> + {{ list.name }} + {% if list.moderated %} + <span class="label label-warning pull-right" title="This list is moderated"><span class="fa fa-fw fa-lock"></span></span> + {% endif %} + </th> + <td> + {{ list.description }} + {% if list.moderators %} + <br><small>Moderators: {{ list.moderators | join:', '}}</small> + {% endif %} + </td> + <td class="ml-actions hidden-xs"> + <div class="btn-group btn-group-xs" role="group" aria-label="Mailing list actions for {{ list.name }}@lists.gentoo.org"> + <a href="mailto:{{ list.name }}@lists.gentoo.org" title="Post to this list" class="btn btn-default"><span class="fa fa-fw fa-send"></span></a> + <a href="mailto:{{ list.name }}+subscribe@lists.gentoo.org" title="Subscribe to this list" class="btn btn-default"><span class="fa fa-fw fa-plus-square"></span></a> + <a href="http://archives.gentoo.org/{{ list.name }}/" title="Archives of this list" class="btn btn-default"><span class="fa fa-fw fa-archive"></span></a> + </div> + </td> +</tr>
\ No newline at end of file diff --git a/_includes/partials/sponsor.html b/_includes/partials/sponsor.html new file mode 100644 index 0000000..056d14e --- /dev/null +++ b/_includes/partials/sponsor.html @@ -0,0 +1,14 @@ +<div class="row sponsor"> + <div class="col-xs-12 col-md-3 sponsorlogo"> + {% if sponsor.img and sponsor.link %} + <a href="{{ sponsor.link }}"><img src="/assets/img/sponsors/{{ sponsor.img }}" alt="{{ sponsor.name }}" /></a> + {% elsif sponsor.img %} + <img src="/assets/img/sponsors/{{ sponsor.img }}" alt="{{ sponsor.name }}" /> + {% endif %} + </div> + <div class="col-xs-12 col-md-9 sponsortext text-justify"> + <h3>{{ sponsor.name }}</h3> + {{ sponsor.blurb | markdownify }} + </div> +</div> +<hr />
\ No newline at end of file |