-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdates.html
More file actions
26 lines (24 loc) · 1.21 KB
/
updates.html
File metadata and controls
26 lines (24 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
layout: page
title: Updates
permalink: /updates/
icon: clock
header: true
---
<p>Diese Seite zeigt die letzten Änderungen am <a href="https://github.com/Der-Eddy/blog">Quellcode</a> dieses Blogs.</p>
<table class="ui unstackable inverted table">
<tbody id="updates">
</tbody>
</table>
<script>
$.getJSON( "https://api.github.com/repos/Der-Eddy/blog/commits", function( data ) {
data.forEach( function(commit){
$("#updates").append('<tr>' +
'<td class="collapsing"><img src="' + commit.author.avatar_url + '" width="36" height="36"></td>' +
'<td><b>' + commit.commit.message + '</b><br>' +
'<span><a href="' + commit.author.html_url + '" target="_blank">' + commit.author.login + '</a> committed ' + $.format.prettyDate(commit.commit.committer.date) + '</span>' +
'</td><td class="right aligned"><a href="' + commit.html_url + '"><button class="ui blue button">' + commit.sha.substring(0, 7) + '</button></a></td></tr>');
});
}).error(function() { alert("GitHub API down?"); });
</script>
<p>Mit lieber Unterstützung vom <a href="https://developer.github.com/v3/git/commits/">GitHub API</a> <i class="heart icon"></i></p>