Diferencia entre revisiones de «Widget:WikiEducatorActivity»
De WikiEducator
(copy from en.WE) |
m (update script paths) |
||
Línea 3: | Línea 3: | ||
<nowiki>{{#widget:WikiEducatorActivity|user=UserName}}</nowiki> | <nowiki>{{#widget:WikiEducatorActivity|user=UserName}}</nowiki> | ||
− | ;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/Ajax-loader.gif" alt="Loading..." style="margin-left: 53px;" /></div> | </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="/skins/common/we/WEactivity.css" rel="stylesheet" />'); | + | $('head').append('<link href="/skins/common/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('/skins/common/we/WEactivity.js') | + | $.getScript('/skins/common/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 20:42 21 may 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)