Merge branch 'pr_license_info' of git://github.com/gradha/nimforum into gradha-pr_license_info
This commit is contained in:
commit
695f53f228
4 changed files with 64 additions and 2 deletions
18
README.md
18
README.md
|
|
@ -1,9 +1,23 @@
|
||||||
nimforum
|
nimforum
|
||||||
========
|
========
|
||||||
|
|
||||||
This is Nimrod's forum. The code depends on the RST parser of
|
This is Nimrod's forum. The code depends on the RST parser of the Nimrod
|
||||||
the Nimrod compiler and on Jester.
|
compiler and on Jester. The code generating captchas for registration uses the
|
||||||
|
[cairo module](http://nimrod-code.org/cairo.html), which requires you to have
|
||||||
|
the [cairo library](http://cairographics.org) installed when you run the forum,
|
||||||
|
or you will be greeted by a cryptic error message similar to:
|
||||||
|
|
||||||
|
$ ./forum could not load: libcairo.so(1.2)
|
||||||
|
|
||||||
|
If you are using macosx and have installed the ``cairo`` library through
|
||||||
|
[MacPorts](https://www.macports.org) you still need to add the library path to
|
||||||
|
your ``LD_LIBRARY_PATH`` environment variable. Example:
|
||||||
|
|
||||||
|
$ LD_LIBRARY_PATH=/opt/local/lib/ ./forum
|
||||||
|
|
||||||
|
Replace ``/opt/local/lib`` with the correct path on your system.
|
||||||
|
|
||||||
|
# Copyright
|
||||||
|
|
||||||
Copyright (c) 2012-2013 Andreas Rumpf, Dominik Picheta.
|
Copyright (c) 2012-2013 Andreas Rumpf, Dominik Picheta.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -806,6 +806,11 @@ get "/newthread/?":
|
||||||
resp genMain(c, genFormPost(c, "donewthread", "New thread", "", "", false),
|
resp genMain(c, genFormPost(c, "donewthread", "New thread", "", "", false),
|
||||||
"Nimrod Forum - New Thread")
|
"Nimrod Forum - New Thread")
|
||||||
|
|
||||||
|
const licenseRst = slurp("static/license.rst")
|
||||||
|
get "/license":
|
||||||
|
createTFD()
|
||||||
|
resp genMain(c, rstToHtml(licenseRst), "Forum content license")
|
||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
docConfig = rstgen.defaultConfig()
|
docConfig = rstgen.defaultConfig()
|
||||||
math.randomize()
|
math.randomize()
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<span>Written in <a href="http://nimrod-code.org/">Nimrod</a> using <a href="https://github.com/dom96/jester">Jester</a></span>
|
<span>Written in <a href="http://nimrod-code.org/">Nimrod</a> using <a href="https://github.com/dom96/jester">Jester</a></span>
|
||||||
<span> | <a href="https://github.com/nimrod-code/nimforum">Fork on Github</a></span>
|
<span> | <a href="https://github.com/nimrod-code/nimforum">Fork on Github</a></span>
|
||||||
|
<span> | User contributions licensed under <a href="http://creativecommons.org/licenses/by-sa/3.0/">cc-wiki</a> with <a href="/license">attribution required</a></span>
|
||||||
<span style="float:right;">Generated in ${int((epochTime()-c.startTime)*1000.0)}ms</span>
|
<span style="float:right;">Generated in ${int((epochTime()-c.startTime)*1000.0)}ms</span>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
42
static/license.rst
Normal file
42
static/license.rst
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
Forum content license
|
||||||
|
=====================
|
||||||
|
|
||||||
|
All the content contributed to the Nimrod Forum is `cc-wiki (aka cc-by-sa)
|
||||||
|
<http://creativecommons.org/licenses/by-sa/3.0/>`_ licensed, intended to be
|
||||||
|
**shared and remixed**. In the future we may even provide all this data as a
|
||||||
|
convenient data dump.
|
||||||
|
|
||||||
|
But our cc-wiki licensing, while intentionally permissive, does **require
|
||||||
|
attribution**::
|
||||||
|
|
||||||
|
**Attribution** — You must attribute the work in the manner specified by
|
||||||
|
the author or licensor (but not in any way that suggests that they endorse
|
||||||
|
you or your use of the work).
|
||||||
|
|
||||||
|
Let us clarify what we mean by attribution. If you republish this content, we
|
||||||
|
require that you:
|
||||||
|
|
||||||
|
* **Visually indicate that the content is from the Nimrod Forum**. It doesn’t
|
||||||
|
have to be obnoxious; a discreet text blurb is fine.
|
||||||
|
* **Hyperlink directly to the original post** (e.g.,
|
||||||
|
http://forum.nimrod-code.org/t/186)
|
||||||
|
* **Show the author names** for every post.
|
||||||
|
* **Hyperlink each author name** directly back to their user profile page
|
||||||
|
(e.g., http://forum.nimrod-code.org/profile/Araq)
|
||||||
|
|
||||||
|
By “directly”, we mean each hyperlink must point directly to our domain in
|
||||||
|
standard HTML visible even with JavaScript disabled, and not use a tinyurl or
|
||||||
|
any other form of obfuscation or redirection. Furthermore, the links must not
|
||||||
|
be `nofollowed
|
||||||
|
<http://googleblog.blogspot.com.es/2005/01/preventing-comment-spam.html>`_.
|
||||||
|
|
||||||
|
This is about the spirit of fair **attribution**. Attribution to the website,
|
||||||
|
and more importantly, to the individuals who so generously contributed their
|
||||||
|
time to create that content in the first place!
|
||||||
|
|
||||||
|
Feel free to remix and reuse to your heart’s content, as long as a good faith
|
||||||
|
effort is made to attribute the content!
|
||||||
|
|
||||||
|
Content previous to the forum license change of
|
||||||
|
http://forum.nimrod-code.org/t/186 remains under the original authors'
|
||||||
|
copyright, and therefore you cannot reuse it.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue