Skip to content

Commit

Permalink
Merge pull request #440 from davbre/issue-439-activity-feed
Browse files Browse the repository at this point in the history
Populating activity feed from site.data.projects where featured = TRUE
  • Loading branch information
rufuspollock committed Apr 29, 2016
2 parents 467bc9f + 5949398 commit 565c5d2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions _data/projects.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ DataHub.io,https://datahub.io/,Open Knowledge International,,,,,/img/projects/pr
OpenLiterature,http://openliterature.net/,Open Knowledge International,,,,,/img/projects/project-openliterature.png,Other,,FALSE,,,dormant,developing,,FALSE,,,,60,
Mira,https://github.com/davbre/mira,David Brennan,davbre,,davbre,mira,/img/projects/project-mira.png,Data Tools and Services,"webapp, tool",FALSE,create simple APIs from CSV files,Ruby,semi-active,developing,,FALSE,,,,70,"API, datapackage, csv, Ruby"
Puppycide Database Project,https://puppycidedb.com,Puppycide Database Project,jaydubya,jaydubya,puppycidedb,pdb-database,https://pbs.twimg.com/profile_images/512989733039792131/lVEJbvP__200x200.jpeg,Database,"data, webapp, running service",FALSE,The Puppycide Database Project researches and records killings of animals by police across the United States with the help of open source applications & crowd sourced research.,"php, javascript, python, nodejs",active,developing,production,FALSE,TRUE,"coding, data analysis, documenting, blogging, evangelism, project managing",,80,"sql, Visualization"
Good Tables,http://goodtables.okfnlabs.org/,Paul Walsh,pwalsh,pwalsh,okfn,goodtables-web,/img/projects/project-goodtables.png,Data Tools and Services,"library, service",TRUE,Validate and process tabular data.,"python, javascript, html, css",active,developing,alpha,TRUE,TRUE,"coding, testing",,90,"Tabular Data, CSV, JSON Table Schema"
Good Tables,http://goodtables.okfnlabs.org/,Paul Walsh,pwalsh,pwalsh,frictionlessdata,goodtables.io,/img/projects/project-goodtables.png,Data Tools and Services,"library, service",TRUE,Validate and process tabular data.,"python, javascript, html, css",active,developing,alpha,TRUE,TRUE,"coding, testing",,90,"Tabular Data, CSV, JSON Table Schema"
Public Tika Server including OCR Service,http://beta.offenedaten.de:9998/tika,Matt Fullerton,mattfullerton,,mattfullerton,tika-tesseract-docker,,Data Tools and Services,service,FALSE,"Turn many files, even text inside images, into text","Java, Dockerfile",active,developing,alpha,TRUE,TRUE,"coding, testing",,100,ocr
DataPortals.org,http://www.dataportals.org/,Rufus Pollock,"rgrp, mattfullerton, schlos",,okfn,dataportals.org,/img/projects/project-dataportals.png,Database,webapp,TRUE,A catalog of data portals around the world,JavaScript,active,mature,mature,TRUE,TRUE,"project managing, coding, testing",,110,node.js
Product Open Data,http://product.okfn.org/,Philippe Plagnol,,,okfn,product-browser-web,/img/projects/project-product-open-data.png,Database,"data, webapp, running service",TRUE,Building the world's largest public product database,"Java, Objective-C, Python, PHP, CSS",active,mature,,TRUE,TRUE,"coding, data analysis, data wrangling, testing, documenting, blogging, evangelism, project managing",,120,
Product Open Data,http://product.okfn.org/,Philippe Plagnol,,,okfn,opd-product-browser-web,/img/projects/project-product-open-data.png,Database,"data, webapp, running service",TRUE,Building the world's largest public product database,"Java, Objective-C, Python, PHP, CSS",active,mature,,TRUE,TRUE,"coding, data analysis, data wrangling, testing, documenting, blogging, evangelism, project managing",,120,
Webshot,http://webshot.okfnlabs.org/,Simon Gaeremynck,,,okfn,webshot,/img/projects/project-webshot.png,Other,"webapp, running service, tool",FALSE,"Free, automated generation of live screenshots of public websites",JavaScript,dormant,developing,mature,FALSE,FALSE,"coding, testing, documenting",,130,node.js
Public Bodies,http://publicbodies.org/,Labs,,"rgrp, wombleton, pudo, rossjones",okfn,publicbodies,/img/projects/project-publicbodies.png,Database,running service,FALSE,A URL for every part of government,"JavaScript, Python",active,mature,mature,TRUE,TRUE,"coding, data wrangling, testing, documenting, blogging",,140,node.js
FacetView,http://okfnlabs.org/facetview/,Mark MacGillivray,,rgrp,okfn,facetview,/img/projects/project-facetview.png,Data Tools and Services,webapp,FALSE,Pure JavaScript frontend for ElasticSearch,JavaScript,dormant,mature,mature,FALSE,FALSE,,,150,elasticsearch
Expand Down
22 changes: 12 additions & 10 deletions _includes/activity.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<div id="github-activity" style="width: 100%"></div>
<script>

{% assign repos_string = "" %}
{% assign featuredProjects = site.data.projects | where: "featured","TRUE" %}
{% for project in featuredProjects %}
{% if project.github_repo != null && project.github_user != null %}
{% assign repo_url = project.github_user | append: "/" | append: project.github_repo %}
{% assign repos_string = repos_string | append: "|" | append: repo_url %}
{% endif %}
{% endfor %}
var featuredProjectRepos = "{{ repos_string }}".split("|").slice(1);
try {
$('#github-activity').githubActivity({
"events": 8,
"repos": [
"openannotation/annotator"
, "okfn/recline"
, "pybossa/pybossa"
, "okfn/publicbodies"
, "pudo/nomenklatura"
, "okfn/data.okfn.org"
, "okfn/dataexplorer"
, "okfn/timemapper"
]
"repos": featuredProjectRepos
});
} catch(e) {}
</script>

0 comments on commit 565c5d2

Please sign in to comment.