Wiki source code of $services.localization.render('xe.home.title')
Version 19.1 by Patrick Masson on 2018/07/05 20:30
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{warning}} | ||
2 | **ALL REGISTERED USERS OF THE OSI WIKI MUST MAINTAIN AN ACTIVE AND LEGITIMATE EMAIL ACCOUNT.** | ||
3 | Any user vandalizing (maliciously editing content), adding inappropriate content or comments (advertisements, malware, etc.) will have their access to the OSI wiki immediately revoked. | ||
4 | See [[our wiki code of conduct>>Operations.Infrastructure Policies.Code of Conduct for OSI Wiki.WebHome]]. | ||
5 | {{/warning}} | ||
6 | |||
7 | **//Questions, answers, mailing lists, live chat and more~://** Whether you're an open source advocate who wants to spread the word about the benefits of open source, a software developer looking for tips or tools, an entrepreneur with a start-up or business leader transforming your company, we have resources to help. | ||
8 | |||
9 | |||
10 | |((( | ||
11 | === **FAQ** === | ||
12 | |||
13 | You're not the first to come to us looking for answers. [[**Look over the most common questions we get...**>>https://opensource.org/faq]] maybe your answer is there. | ||
14 | )))|((( | ||
15 | === **Ask the OSI** === | ||
16 | |||
17 | Have a question about The Open Source Initiative? | ||
18 | [[**Get an answer here!**>>https://opensource.org/contact]] | ||
19 | )))|((( | ||
20 | === **IRC (Live Chat)** === | ||
21 | |||
22 | [[**Join us on IRC at freenode.net.**>>http://webchat.freenode.net/]] The #osi channel is for user support and general discussion. | ||
23 | ))) | ||
24 | |((( | ||
25 | === **Documentation** === | ||
26 | |||
27 | [[**Almost everything is on our wiki**>>http://wiki.opensource.org/]], including work from various teams. A lot of information can be obtained here. | ||
28 | )))|((( | ||
29 | === **Mailing Lists** === | ||
30 | |||
31 | We have many [[**global and regional mailing lists**>>https://opensource.org/lists]], for announcements, discussion, licensing and other topics. You can also read mailing lists on the web via Mailman. | ||
32 | )))|((( | ||
33 | === **Get Social** === | ||
34 | |||
35 | You can find us on [[**GitHub**>>https://github.com/OpenSourceOrg]], [[**Google+**>>https://plus.google.com/+opensourceinitiative]], [[**LinkedIn**>>https://www.linkedin.com/company/open-source-initiative-osi-]], [[**Reddit**>>https://www.reddit.com/r/opensource/]], [[**Twitter**>>https://twitter.com/OpenSourceOrg]]. | ||
36 | ))) | ||
37 | |||
38 | {{include reference="Dashboard.WebHome" context="new"/}} | ||
39 | |||
40 | {{velocity}} | ||
41 | =Form to delete manually some events entries from Activity Stream = | ||
42 | |||
43 | Select events below (last 500) and click on button to delete them | ||
44 | |||
45 | #if ($xwiki.hasAdminRights()) | ||
46 | {{html}} | ||
47 | <form method="get" id="DelActivityStream" onsubmit="return confirm('Delete selected events: are you sure?')"> | ||
48 | <div class="container"> | ||
49 | ## List 500 last events | ||
50 | #foreach ($MyEvent in $xwiki.activitystream.getEvents(false, 500, 0 )) | ||
51 | #set($MycheckBox="<input type='checkbox' name='IdEntry' value='") | ||
52 | #set($MycheckBox=$MycheckBox + "$MyEvent.getEventId()") | ||
53 | #set($MycheckBox=$MycheckBox + "'/>" + "$MyEvent.getDisplayDate() - $MyEvent.getPage() - $MyEvent.getType() - - $MyEvent.getUser() " + "<br />") | ||
54 | $MycheckBox | ||
55 | #end | ||
56 | </div> | ||
57 | <span class="buttonwrapper"><input type="submit" value="Delete selected entries from Activity stream" class="button"/></span> | ||
58 | </form> | ||
59 | {{/html}} | ||
60 | #else | ||
61 | {{warning}} | ||
62 | You must login with an administrator account. | ||
63 | {{/warning}} | ||
64 | #end | ||
65 | |||
66 | ## Get selected events ids | ||
67 | ## formatting to use data in next hql query: act.eventId in ( 'xxx-yyyyy', 'another-ide', 'etc' ) | ||
68 | #set($ListIn = $stringtool.join($request.getParameterValues('IdEntry'), "', '")) | ||
69 | #set($ListIn = "'" + $ListIn + "'") | ||
70 | |||
71 | ## Get selected events object | ||
72 | #set($results= $xwiki.activitystream.searchEvents("act.eventId in ($ListIn)", false, 0, 0)) | ||
73 | |||
74 | ## loop on theses events and delete them | ||
75 | #foreach ($MyEventToDelete in $results) | ||
76 | $xwiki.activitystream.deleteActivityEvent($MyEventToDelete) | ||
77 | * $MyEventToDelete.getDisplayDate() - $MyEventToDelete.getPage() - $MyEventToDelete.getType() - - $MyEventToDelete.getUser() ~*~* //**deleted**// ~*~* | ||
78 | #end | ||
79 | {{/velocity}} |