Permalink
Browse files

added description per extension

  • Loading branch information...
1 parent 5a51e7a commit cccb1c66dcbd573f029a50df7a2353e1c43908c0 mhausenblas committed Mar 1, 2012
Showing with 9 additions and 4 deletions.
  1. +5 −0 sandbox/schema-org-nav/rdfa.css
  2. +4 −4 sandbox/schema-org-nav/schema-org-nav.js
@@ -148,6 +148,11 @@ span {
padding: 0 0 0 10px;
}
+.extension p {
+ color: #909090;
+ font-size: 95%;
+ padding: 0 0 0 23px;
+}
/* overwrite the jQuery UI stuff */
@@ -177,25 +177,25 @@ function render_extensions(){
$('#tabs-published').html('<p class="ext-state">' + EXTENSIONS_SCHEMA.state.published + '</p>');
for(i=0; i < extensions.length; i++){ // published extensions
if(extensions[i].state == (EXTENSIONS_SCHEMA.prefix + ':published')) {
- $('#tabs-published').append('<div class="extension"><a class="expand" href="' + extensions[i].id + '">&laquo;</a> ' + extensions[i].title + ': <a href="' + extensions[i].spec +'">schema</a></div>');
+ $('#tabs-published').append('<div class="extension"><a class="expand" href="' + extensions[i].id + '">&laquo;</a> ' + extensions[i].title + ': <a href="' + extensions[i].spec +'">schema</a><p>' + extensions[i].description + '</p></div>');
}
}
$('#tabs-candidate').html('<p class="ext-state">' + EXTENSIONS_SCHEMA.state.candidate + '</p>');
for(i=0; i < extensions.length; i++){ // candidate extensions
if(extensions[i].state == (EXTENSIONS_SCHEMA.prefix + ':candidate')) {
- $('#tabs-candidate').append('<div class="extension"><a class="expand" href="' + extensions[i].id + '">&laquo;</a> ' + extensions[i].title + '</span>: <a href="' + extensions[i].spec +'">schema</a></div>');
+ $('#tabs-candidate').append('<div class="extension"><a class="expand" href="' + extensions[i].id + '">&laquo;</a> ' + extensions[i].title + '</span>: <a href="' + extensions[i].spec +'">schema</a><p>' + extensions[i].description + '</p></div>');
}
}
$('#tabs-proposal').html('<p class="ext-state">' + EXTENSIONS_SCHEMA.state.proposal + '</p>');
for(i=0; i < extensions.length; i++){ // // proposal extensions
if(extensions[i].state == (EXTENSIONS_SCHEMA.prefix + ':proposal')) {
- $('#tabs-proposal').append('<div class="extension"><a class="expand" href="' + extensions[i].id + '">&laquo;</a> ' + extensions[i].title + '</span>: <a href="' + extensions[i].spec +'">proposal</a></div>');
+ $('#tabs-proposal').append('<div class="extension"><a class="expand" href="' + extensions[i].id + '">&laquo;</a> ' + extensions[i].title + '</span>: <a href="' + extensions[i].spec +'">proposal</a><p>' + extensions[i].description + '</p></div>');
}
}
$('#tabs-discussion').html('<p class="ext-state">' + EXTENSIONS_SCHEMA.state.discussion + '</p>');
for(i=0; i < extensions.length; i++){ // extensions under discussion
if(extensions[i].state == (EXTENSIONS_SCHEMA.prefix + ':discussion')) {
- $('#tabs-discussion').append('<div class="extension"><a class="expand" href="' + extensions[i].id + '">&laquo;</a> ' + extensions[i].title + '</span>: <a href="' + extensions[i].spec +'">discussion</a></div>');
+ $('#tabs-discussion').append('<div class="extension"><a class="expand" href="' + extensions[i].id + '">&laquo;</a> ' + extensions[i].title + '</span>: <a href="' + extensions[i].spec +'">discussion</a><p>' + extensions[i].description + '</p></div>');
}
}
}

0 comments on commit cccb1c6

Please sign in to comment.