Skip to content

Commit

Permalink
Merge pull request YunoHost#717 from YunoHost/embed-chatroom-in-help-…
Browse files Browse the repository at this point in the history
…page

Embed the chatroom directly in the help page
  • Loading branch information
alexAubin authored May 11, 2018
2 parents 953541e + 4488f87 commit 45f88c7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 33 deletions.
17 changes: 5 additions & 12 deletions help.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@
<li><em>Be patient</em>, it can take a few minutes before someone sees your messages.</li>
</ul>
</div>
<strong>Nickname</strong> : <input id="nickname" value="foobar__" type="text">
</br>
</br>
<button id="joinChatroom" type="button" class="btn btn-success" style="font-weight:bold;">
<span class="glyphicon glyphicon-comment"></span> Join the chatroom
</button>

<iframe src="https://kiwiirc.com/client/irc.freenode.org/?nick=foobar|?&theme=mini#yunohost" style="border:0; width:100%; height:450px;"></iframe>

</br>
</br>
<em>Note : you can also connect using your favorite XMPP client to </br>
[email protected]</em>
<em>Note : this room is also available via XMPP <small>([email protected])</small>, or Matrix <small>(#freenode_#yunohost:matrix.org)</small></em>
</center>

<h3>... or ask on the forum !</h3>
Expand Down Expand Up @@ -47,10 +43,7 @@ [email protected] and [email protected]</em>
</center>

<script>
document.getElementById("joinChatroom").onclick = function() {
var nickname = document.getElementById("nickname").value;
window.location.href = "https://kiwiirc.com/client/irc.freenode.net/yunohost/?nick="+nickname;
}

document.getElementById("goForum").onclick = function() {
var nickname = document.getElementById("nickname").value;
window.location.href = "https://forum.yunohost.org/latest";
Expand Down
13 changes: 3 additions & 10 deletions help_ar.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@
</div>
<div dir="rtl"><strong>الإسم المستعار</strong> : <input id="nickname" value="foobar__" type="text">
</div>
</br>
</br>
<div dir="rtl"><button id="joinChatroom" type="button" class="btn btn-success" style="font-weight:bold;">
<span class="glyphicon glyphicon-comment"></span> إنضم إلى غرفة المحادثة
</button>
</div>

<iframe src="https://kiwiirc.com/client/irc.freenode.org/?nick=foobar|?&theme=mini#yunohost" style="border:0; width:100%; height:450px;"></iframe>

</br>
</br>
<div dir="rtl">
Expand Down Expand Up @@ -56,10 +53,6 @@ [email protected] and [email protected]</em>
</center>

<script>
document.getElementById("joinChatroom").onclick = function() {
var nickname = document.getElementById("nickname").value;
window.location.href = "https://kiwiirc.com/client/irc.freenode.net/yunohost/?nick="+nickname;
}
document.getElementById("goForum").onclick = function() {
var nickname = document.getElementById("nickname").value;
window.location.href = "https://forum.yunohost.org/latest";
Expand Down
17 changes: 6 additions & 11 deletions help_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
<li><em>Soyez patient</em>, cela peut prendre plusieurs minutes avant que quelqu'un remarque vos messages.</li>
</ul>
</div>
<strong>Pseudonyme</strong> : <input id="nickname" value="foobar__" type="text">
</br>
</br>
<button id="joinChatroom" type="button" class="btn btn-success" style="font-weight:bold;">
<span class="glyphicon glyphicon-comment"></span> Rejoindre le salon
</button>

<iframe
src="https://kiwiirc.com/client/irc.freenode.org/?nick=foobar|?&theme=mini#yunohost"
style="border:0; width:100%; height:450px;"></iframe>

</br>
</br>
<em>Note : vous pouvez aussi vous connecter via votre client XMPP favori à</br>
<em>Note : ce salon est aussi accessible via XMPP <small>([email protected])</small>, ou Matrix <small>(#freenode_#yunohost:matrix.org)</small>.</em>
[email protected]</em>
</center>

Expand Down Expand Up @@ -47,10 +46,6 @@ [email protected] et [email protected]</em>
</center>

<script>
document.getElementById("joinChatroom").onclick = function() {
var nickname = document.getElementById("nickname").value;
window.location.href = "https://kiwiirc.com/client/irc.freenode.net/yunohost/?nick="+nickname;
}
document.getElementById("goForum").onclick = function() {
var nickname = document.getElementById("nickname").value;
window.location.href = "https://forum.yunohost.org/latest";
Expand Down

0 comments on commit 45f88c7

Please sign in to comment.