Diferencia entre revisiones de «Widget:WikiEducatorActivity»
De WikiEducator
m (update script paths) |
m (change path capitalization for consistency) |
||
Línea 5: | Línea 5: | ||
;user:specified user (if no user specified, defaults to viewing user) | ;user:specified user (if no user specified, defaults to viewing user) | ||
− | </noinclude><includeonly><!--{counter name="WEactivityID" assign="WEactivityID"}--><div class="WEactivity" id="WEactivity<!--{$WEactivityID|validate:int}-->"><img class="WEnotesSpinner" src="/skins/common/images/ | + | </noinclude><includeonly><!--{counter name="WEactivityID" assign="WEactivityID"}--><div class="WEactivity" id="WEactivity<!--{$WEactivityID|validate:int}-->"><img class="WEnotesSpinner" src="/skins/common/images/ajax-loader.gif" alt="Loading..." style="margin-left: 53px;" /></div> |
<script type="text/javascript">/*<![CDATA[*/ | <script type="text/javascript">/*<![CDATA[*/ | ||
$(function() { | $(function() { | ||
− | $('head').append('<link href="/ | + | $('head').append('<link href="/extensions/WE/WEactivity/WEactivity.css" rel="stylesheet" />'); |
$.when( | $.when( | ||
$.getScript('//cdnjs.cloudflare.com/ajax/libs/d3/3.2.2/d3.v3.js'), | $.getScript('//cdnjs.cloudflare.com/ajax/libs/d3/3.2.2/d3.v3.js'), | ||
− | $.getScript('/ | + | $.getScript('/extensions/WE/WEactivity/WEactivity.js') |
).done(function() { | ).done(function() { | ||
WEactivity('WEactivity<!--{$WEactivityID|validate:int}-->', '<!--{$user|escape:quotes}-->'); | WEactivity('WEactivity<!--{$WEactivityID|validate:int}-->', '<!--{$user|escape:quotes}-->'); | ||
}); | }); | ||
})/*]]>*/</script></includeonly> | })/*]]>*/</script></includeonly> |
Revisión de 18:22 1 sep 2014
Graphic display of recent activity for the specified user.
Usage
{{#widget:WikiEducatorActivity|user=UserName}}
- user
- specified user (if no user specified, defaults to viewing user)