Initial version.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Fri, 19 Sep 2014 13:48:24 +0000 (15:48 +0200)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Fri, 19 Sep 2014 13:48:24 +0000 (15:48 +0200)
79 files changed:
.gitignore
content/index.html
content/media/css/base.scss
content/media/css/book_text.scss [new file with mode: 0644]
content/media/ilustr/3m.jpg [new file with mode: 0644]
content/media/ilustr/Terrace-of-a-Cafe-on-Montmartre-(La-Guinguette).jpg [new file with mode: 0644]
content/media/ilustr/Utwor zalezny_ver4_.jpg [new file with mode: 0644]
content/media/ilustr/Utwor zalezny_ver4_.tif [new file with mode: 0644]
content/media/ilustr/apple.jpg [new file with mode: 0644]
content/media/ilustr/google.jpg [new file with mode: 0644]
content/media/ilustr/grafika1.jpg [new file with mode: 0644]
content/media/ilustr/grafika2.jpg [new file with mode: 0644]
content/media/ilustr/inpost.jpg [new file with mode: 0644]
content/media/ilustr/microsoft.jpg [new file with mode: 0644]
content/media/ilustr/samsung.jpg [new file with mode: 0644]
content/media/ilustr/wykres.png [new file with mode: 0644]
content/media/ilustr/zdjecie 1.jpg [new file with mode: 0644]
content/media/ilustr/zdjecie 2.jpg [new file with mode: 0644]
content/media/ilustr/zdjecie 3.jpg [new file with mode: 0644]
content/media/ilustr/zdjecie 4.jpg [new file with mode: 0644]
content/media/ilustr/zdjecie 5.jpg [new file with mode: 0644]
content/media/images/favicon.png [deleted file]
content/media/images/listek.png [deleted file]
content/media/images/listek1.png [deleted file]
content/media/images/okladka.jpg [new file with mode: 0644]
content/media/images/roza-1.png [deleted file]
content/media/images/roza-2.png [deleted file]
content/media/images/roza-3.png [deleted file]
content/media/images/roza-4.png [deleted file]
content/media/images/roza-mala-1.png [deleted file]
content/media/images/roza-mala-2.png [deleted file]
content/media/images/roza-mala-3.png [deleted file]
content/media/images/roza-mala-4.png [deleted file]
content/media/images/roza-mala.png [deleted file]
content/media/images/roza-select-1.png [deleted file]
content/media/images/roza-select-2.png [deleted file]
content/media/images/roza-select-3.png [deleted file]
content/media/images/roza-select-4.png [deleted file]
content/media/images/roza-select.png [deleted file]
content/media/images/roza.png [deleted file]
content/media/logos/icm-logo-1.png [new file with mode: 0644]
content/media/logos/icm-logo-2.png [new file with mode: 0644]
content/media/logos/nowoczesna-polska.png [new file with mode: 0644]
content/media/logos/pon.png [new file with mode: 0644]
content/media/logos/prawo-kultury-1.png [new file with mode: 0644]
content/media/logos/trust.png [new file with mode: 0644]
content/texts/intro/autor-uzytkownik-posrednik.html [deleted file]
content/texts/intro/co-nada-ksztalt-przyszlosci.html [deleted file]
content/texts/intro/czekajac-na-przelom.html [deleted file]
content/texts/intro/morfologia-bajki.html [deleted file]
content/texts/intro/wstep.html
content/texts/main/dolina-muminkow.html [deleted file]
content/texts/main/klondike.html [deleted file]
content/texts/main/meta.yaml [deleted file]
content/texts/main/mordor.html [deleted file]
content/texts/main/plac-broni.html [deleted file]
content/texts/outro/co-nas-czeka.html [deleted file]
content/texts/outro/metodologia.html [deleted file]
content/texts/outro/o-projekcie.html [deleted file]
content/texts/outro/zespol.html [deleted file]
dev/PON_LOGO_PION_PODSTAWA_KOLOR_pl_rgb.png [new file with mode: 0644]
dev/PON_LOGO_PODSTAWA_KOLOR_pl_rgb.png [new file with mode: 0644]
dev/icm-logo-1.png [new file with mode: 0644]
dev/icm-logo-2.png [new file with mode: 0644]
dev/icm-logo-green.png [new file with mode: 0644]
dev/icm-logo.png [new file with mode: 0644]
dev/nowoczesna-polska.eps [new file with mode: 0644]
dev/nowoczesna-polska.png [new file with mode: 0644]
dev/pon.png [new file with mode: 0644]
dev/prawo-kultury-1.png [new file with mode: 0644]
dev/prawo-kultury.png [new file with mode: 0644]
dev/trust.eps [new file with mode: 0644]
dev/trust.png [new file with mode: 0644]
layout/base.j2
layout/scenario.j2 [deleted file]
layout/text.j2
parse.py [new file with mode: 0755]
production.yaml [new file with mode: 0644]
site.yaml

index 11d43d8..ffc6be1 100644 (file)
@@ -1,4 +1,6 @@
 *~
 deploy
+deploy_*
 .hyde_deps
+content/import
 
index aafd863..84ea512 100644 (file)
@@ -2,43 +2,83 @@
 extends: base.j2
 ---
 
-{% block full_title %}Scenariusze przyszłości prawa autorskiego{% endblock %}
+
+{% block full_title %}Wprowadzenie do własności intelektualnej{% endblock %}
+
+
+{% block bodyid %}index{% endblock %}
+
 
 {% block body %}
 
 <header>
-<img src="{{ media_url('images/roza-mala.png') }}"/>
-<h1>
-    Scenariusze przyszłości tworzenia, udostępniania i&nbsp;wykorzystywania
-    dóbr kultury oraz ocena jej wpływu na stan społeczeństwa, kultury,
-    edukacji, sektor kreatywny a&nbsp;także system prawa autorskiego
-    w&nbsp;Europie w&nbsp;perspektywie roku&nbsp;2040</h1>
+<h1>Krótki kurs własności intelektualnej<br/> Materiały dla wyższych uczelni</h1>
+
+<nav>
+<a class="link-next" href="{{ content_url('/wstep') }}">
+Wstęp</a>
+</nav>
+
 <div style="clear:both"></div>
 </header>
 
+<section id="logos" style="
+    background: white;
+    padding: 
+    "><section>
+        <h1>Organizator</h1
+        ><a href='https://nowoczesnapolska.org.pl'><img
+            src="{{ media_url('logos/nowoczesna-polska.png') }}"
+            alt="Fundacja Nowoczesna Polska"
+            title="Fundacja Nowoczesna Polska"></a
+        ><a href='https://prawokultury.pl'><img
+            src="{{ media_url('logos/prawo-kultury-1.png') }}"
+            alt="Prawo Kultury"
+            title="Prawo Kultury"></a
+    ></section><section
+        ><h1>Grantodawca</h1
+        ><a href='http://ceetrust.org'><img
+            src="{{ media_url('logos/trust.png') }}"
+            alt="Trust for Civil Society in Central and Eastern Europe"
+            title="Trust for Civil Society in Central and Eastern Europe"></a
+    ></section><section>
+        <h1>Patron merytoryczny</h1
+        ><a href='https://www.icm.edu.pl'><img
+            src="{{ media_url('logos/icm-logo-1.png') }}"
+            alt="Interdyscyplinarne Centrum Modelowania Matematycznego i Komputerowego, Uniwersytet Warszawski"
+            title="Interdyscyplinarne Centrum Modelowania Matematycznego i Komputerowego, Uniwersytet Warszawski"></a
+        ><a href='http://pon.edu.pl'><img
+            src="{{ media_url('logos/pon.png') }}"
+            alt="Platforma Otwartej Nauki"
+            title="Platforma Otwartej Nauki"></a
+    ></section></section>
+
+<section class="home-section" id="tools">
+    <h2>Pobierz</h2>
 
-{% for grp, res_walker in site.content.walk_section_groups() -%}
+    <a href="">Kurs w&nbsp;formacie PDF</a>
+    <a href="">Prezentację w&nbsp;formacie ODP</a>
+    <a href="">Prezentację w&nbsp;formacie PDF</a>
+    <a href="">Kurs w&nbsp;formacie SCORM (zgodny z Moodle)</a>
+    <a href="http://ofop.redakcja.wolnelektury.pl/documents/book/kurs-ip-dla-uniwersytetow/">Źródło do edycji</a>
+</section>
+
+{%- for grp, res_walker in site.content.walk_section_groups() -%}
     {%- if grp.name != 'section' -%}
-        <section class="{{ grp.name }}">
-        {%- if grp.name == 'main' -%}
-            <h2>Scenariusze</h2>
-            <div class="roza" id="scenariusze">
-                <img src="{{ media_url('images/roza.png') }}" style="display: block; width: 100%">
-                {%- for res in res_walker  -%}
-                    <a id="roza-{{ res.meta.order }}" href="{{ res.full_url }}" title="{{ res.title }}"></a>
-                {%- endfor -%}
-            </div>
-            </section>
-        {%- else -%}
-            {%- for res in res_walker  -%}
-                <a href="{{ res.full_url }}">{{ res.meta.title }}
-                    <span class="author">{{ res.meta.author }}</span></a>
-            {%- endfor -%}
+        <section class="home-section">
+        {%- if grp.title != '' -%}
+            <h2>{{ grp.title }}</h2>
+        {% endif %}
+        {%- if grp.name == 'intro' -%}
         {%- endif -%}
+        
+        {%- for res in res_walker  -%}
+            <a href="{{ res.full_url }}">{{ res.meta.title }}
+                {% if res.meta.author %}<span class="author">{{ res.meta.author }}</span>{% endif %}
+            </a>
+        {%- endfor -%}
         </section>
     {%- endif -%}
 {%- endfor %}
 
-
-<!--a class="download" href="{{ media_url('przyszlosc.pdf') }}">Pobierz PDF</a-->
 {% endblock %}
\ No newline at end of file
index ad5cc0e..c2b0f06 100644 (file)
@@ -5,39 +5,81 @@ html {
     margin: 0;
     padding: 0;
 }
+
 body {
     margin: 0;
     padding: 0;
     font-family: Dosis;
+
     color: #363a3b;
-    background-color: white;
+    background-color: #e8e8e8;
+    background-repeat:no-repeat;
+    background-position: 100% 120px;
+}
+
+#body {
+    max-width: 48em;
+    margin: 0 auto;
+    spadding: 0 .5rem;
 }
 
 a {
     text-decoration: none;
-    color: #ea5b0b;
+    color: black;
     &:hover {
         text-decoration: underline;
     }
 }
 
+#home-link {
+    padding: .5em;
+    display: block;
+    float:left;
+
+    &:hover {
+        text-decoration: none;
+        background: rgba(255,255,255,.9);
+    }
+}
+
+#top-logo {
+    float: right;
+    margin: 0 1rem 0 1rem;
+}
+
 header {
-    padding: 2rem 20%;
-    text-align: right;
+    background-image: url("{{ media_url('images/okladka.jpg') }}");
+    background-position: 50% 76%;
+    background-size: auto 100%;
+
+    @media screen and (min-width: 20em) {
+        padding-top: 8rem;
+    }
+
+    @media screen and (min-width: 24em) {
+        background-size: 100% auto;
+    }
 
     h1 {
         margin: 0;
-        padding: 0;
-        padding-left: 84px;
+        padding: 2em .5em 1em;
+        background: rgba(255,255,255,.7);
+        clear: both;
+
+        @media screen and (min-width: 20em) {
+            padding: 1em;
+            float: right;
+            text-align: right;
+        }
+
         .author {
             font-size: 1rem;
             font-weight: normal;
         }
     }
-    img {
-        float: left;
-        width: 74px;
-        height: 74px;
+
+    nav {
+        margin-top: 0;
     }
 }
 
@@ -46,16 +88,34 @@ section#lead {
     text-align: right;
 }
 
-section.intro, section.outro {
+section.home-section {
     font-size: 1.3rem;
-    background: #edede6;
+
+    h2 {
+        padding: 1rem;
+        margin: 0;
+    }
 
     a {
         display: block;
-        padding: .7em 20%;
+        padding: .25em .5em .25em .5em;
         color: black;
+        position:relative;
+        font-size: 1.2rem;
+
+        @media screen and (min-width: 20em) {
+            padding-left: 2.7rem;
+            font-size: 1.3rem;
+
+            &:before {
+                content: '\bb';
+                position: absolute;
+                left: 1rem;
+            }
+        }
+
         &:hover {
-            background: white;
+            background: #f4f4f4;
             text-decoration: none;
         }
         .author {
@@ -64,99 +124,114 @@ section.intro, section.outro {
         }
     }
 }
-
-section.main {
-    padding: 0 20%;
-
-    div.roza {
+#tools {
+    background: #eee;
+    padding-bottom: 1em;
+
+    @media screen and (min-width: 36em) {
+        float: right;
+        z-index: 1000;
+        margin: 0 0 1em 1em;
+        width: 14em;
         position: relative;
-        
-        a {
-            position: absolute;
-            &#roza-1 {
-                top: 0;
-                left: 33%;
-                right: 33%;
-                bottom: 55%;
-                &:hover {
-                    background: url({{ media_url('images/roza-select-1.png') }});
-                    background-size: 294%;
-                    background-position: 50% 0;
-                }
-            }
-            &#roza-2 {
-                top: 33%;
-                left: 55%;
-                right: 0;
-                bottom: 33%;
-                &:hover {
-                    background: url({{ media_url('images/roza-select-2.png') }});
-                    background-size: 222%;
-                    background-position: 100% 50%;
-                }
-            }
-            &#roza-3 {
-                top: 55%;
-                left: 33%;
-                right: 33%;
-                bottom: 0;
-
-                &:hover {
-                    background: url({{ media_url('images/roza-select-3.png') }});
-                    background-size: 294%;
-                    background-position: 50% 100%;
-                }
-            }
-            &#roza-4 {
-                top: 33%;
-                left: 0;
-                right: 55%;
-                bottom: 33%;
-
-                &:hover {
-                    background: url({{ media_url('images/roza-select-4.png') }});
-                    background-size: 222%;
-                    background-position: 0 50%;
-                }
-            }
-        }
+        border-color: #ddd;
+        border-style: solid;
+        border-width: 0 0 1px 1px;
     }
 }
 
-a.download {
-    padding: 0 20%;
-}
-
 
 footer {
-    border-top: 1px solid #edede6;
-    padding: 1em 20%;
+    border-top: 1px solid #fff;
+    padding: 1em 0;
     margin-top: 3em;
 }
 
-.ocena img {
-    vertical-align: middle;
+nav {
+    clear: both;
+    margin-top: 3em;
+
+    a:hover {
+        text-decoration: none;
+        background: rgba(255,255,255,.9);
+    }
+
+    .link-prev {
+        float: left;
+        padding: 1em;
+        &:before {
+            content: '\25c4';
+            margin-right: .4em;
+        }
+    }
+    .link-next {
+        float: right;
+        text-align:right;
+        padding: 1em;
+        &:after {
+            content: '\25ba';
+            margin-left: .4em;
+        }
+    }
 }
 
-blockquote {
+
+#logos {
     margin: 0;
-    padding: 0;
-    font-style: italic;
+    padding: 1.5rem 0 1rem;
+    section {
+        display: inline-block;
+        h1 {
+            font-size: .8rem;
+            font-weight: normal;
+            margin: 0 0 .7rem 1.25rem;
+        }
+        a {
+            display: inline-block;
+            margin-left: 1.23rem;
+            margin-bottom: 1rem;
+        }
+        img {
+            width: 8.125rem;
+            vertical-align: middle;
+        }
+    }
 }
 
-.twocol {
-    -moz-column-count: 2;
-    -webkit-column-count: 2;
-    -o-column-count: 2;
-    -ms-column-count: 2;
-    column-count: 2;
-    -moz-column-break-inside: avoid;
-    -webkit-column-break-inside: avoid;
-    -o-column-break-inside: avoid;
-    -ms-column-break-inside: avoid;
-    column-break-inside: avoid;
-
-    p {
-        margin: 0 0 1em;
+
+body#index {
+    #body {
+        display: -webkit-box;
+        display: -moz-box;
+        display: box;
+        -webkit-box-orient: vertical;
+        -moz-box-orient: vertical;
+        box-orient: vertical;
+
+        @media screen and (min-width: 36em) {
+            display: block;
+        }
+
+
+        header {
+            -webkit-box-ordinal-group: 1;
+            -moz-box-ordinal-group: 1;
+            box-ordinal-group: 1;
+        }
+        #logos {
+            -webkit-box-ordinal-group: 4;
+            -moz-box-ordinal-group: 4;
+            box-ordinal-group: 4;
+        }
+        .home-section {
+            -webkit-box-ordinal-group: 3;
+            -moz-box-ordinal-group: 3;
+            box-ordinal-group: 3;
+        }
+        footer {
+            -webkit-box-ordinal-group: 100;
+            -moz-box-ordinal-group: 100;
+            box-ordinal-group: 100;
+        }
     }
 }
\ No newline at end of file
diff --git a/content/media/css/book_text.scss b/content/media/css/book_text.scss
new file mode 100644 (file)
index 0000000..2bb5ede
--- /dev/null
@@ -0,0 +1,64 @@
+.main {
+    padding: 0 .5em;
+    line-height: 1.5em;
+
+    h2 {
+        &:hover {
+            .permalink:after {
+                visibility: visible;
+            }
+        }
+
+        .permalink:after {
+            content: '\b6';
+            font-size: .7em;
+            padding: .5em;
+            visibility: hidden;
+        }
+    }
+
+    blockquote {
+        margin: 1em 0 1em 1em;
+        font-style: italic;
+
+        @media screen and (min-width: 24em) {
+            margin: 1.5em;
+        }
+    }
+
+    ul, ol {
+        margin-left: 0;
+        padding-left: 2rem;
+    }
+
+    table {
+        border-collapse: collapse;
+        
+        @media screen and (min-width: 24em) {
+            margin: 1.5em;
+        }
+
+        td {
+            border: 1px solid #444;
+            padding: .5em;
+            vertical-align: top;
+            @media screen and (min-width: 24em) {
+                padding: 1em;
+            }
+        }
+    }
+
+    li {
+        margin: .5em;
+    }
+
+    img {
+        display: block;
+        max-width: 100%;
+        margin: 1em 0;
+    }
+
+    td img {
+        max-width: 8em;
+    }
+}
diff --git a/content/media/ilustr/3m.jpg b/content/media/ilustr/3m.jpg
new file mode 100644 (file)
index 0000000..ad41bb6
Binary files /dev/null and b/content/media/ilustr/3m.jpg differ
diff --git a/content/media/ilustr/Terrace-of-a-Cafe-on-Montmartre-(La-Guinguette).jpg b/content/media/ilustr/Terrace-of-a-Cafe-on-Montmartre-(La-Guinguette).jpg
new file mode 100644 (file)
index 0000000..aa4b871
Binary files /dev/null and b/content/media/ilustr/Terrace-of-a-Cafe-on-Montmartre-(La-Guinguette).jpg differ
diff --git a/content/media/ilustr/Utwor zalezny_ver4_.jpg b/content/media/ilustr/Utwor zalezny_ver4_.jpg
new file mode 100644 (file)
index 0000000..4f39371
Binary files /dev/null and b/content/media/ilustr/Utwor zalezny_ver4_.jpg differ
diff --git a/content/media/ilustr/Utwor zalezny_ver4_.tif b/content/media/ilustr/Utwor zalezny_ver4_.tif
new file mode 100644 (file)
index 0000000..f153de1
Binary files /dev/null and b/content/media/ilustr/Utwor zalezny_ver4_.tif differ
diff --git a/content/media/ilustr/apple.jpg b/content/media/ilustr/apple.jpg
new file mode 100644 (file)
index 0000000..f6d5af2
Binary files /dev/null and b/content/media/ilustr/apple.jpg differ
diff --git a/content/media/ilustr/google.jpg b/content/media/ilustr/google.jpg
new file mode 100644 (file)
index 0000000..053880d
Binary files /dev/null and b/content/media/ilustr/google.jpg differ
diff --git a/content/media/ilustr/grafika1.jpg b/content/media/ilustr/grafika1.jpg
new file mode 100644 (file)
index 0000000..69ad1f9
Binary files /dev/null and b/content/media/ilustr/grafika1.jpg differ
diff --git a/content/media/ilustr/grafika2.jpg b/content/media/ilustr/grafika2.jpg
new file mode 100644 (file)
index 0000000..bd35d99
Binary files /dev/null and b/content/media/ilustr/grafika2.jpg differ
diff --git a/content/media/ilustr/inpost.jpg b/content/media/ilustr/inpost.jpg
new file mode 100644 (file)
index 0000000..6978328
Binary files /dev/null and b/content/media/ilustr/inpost.jpg differ
diff --git a/content/media/ilustr/microsoft.jpg b/content/media/ilustr/microsoft.jpg
new file mode 100644 (file)
index 0000000..3bda5b7
Binary files /dev/null and b/content/media/ilustr/microsoft.jpg differ
diff --git a/content/media/ilustr/samsung.jpg b/content/media/ilustr/samsung.jpg
new file mode 100644 (file)
index 0000000..860fcf2
Binary files /dev/null and b/content/media/ilustr/samsung.jpg differ
diff --git a/content/media/ilustr/wykres.png b/content/media/ilustr/wykres.png
new file mode 100644 (file)
index 0000000..23e1c81
Binary files /dev/null and b/content/media/ilustr/wykres.png differ
diff --git a/content/media/ilustr/zdjecie 1.jpg b/content/media/ilustr/zdjecie 1.jpg
new file mode 100644 (file)
index 0000000..200ba57
Binary files /dev/null and b/content/media/ilustr/zdjecie 1.jpg differ
diff --git a/content/media/ilustr/zdjecie 2.jpg b/content/media/ilustr/zdjecie 2.jpg
new file mode 100644 (file)
index 0000000..5841cfd
Binary files /dev/null and b/content/media/ilustr/zdjecie 2.jpg differ
diff --git a/content/media/ilustr/zdjecie 3.jpg b/content/media/ilustr/zdjecie 3.jpg
new file mode 100644 (file)
index 0000000..b3dc0d7
Binary files /dev/null and b/content/media/ilustr/zdjecie 3.jpg differ
diff --git a/content/media/ilustr/zdjecie 4.jpg b/content/media/ilustr/zdjecie 4.jpg
new file mode 100644 (file)
index 0000000..f456d75
Binary files /dev/null and b/content/media/ilustr/zdjecie 4.jpg differ
diff --git a/content/media/ilustr/zdjecie 5.jpg b/content/media/ilustr/zdjecie 5.jpg
new file mode 100644 (file)
index 0000000..0815454
Binary files /dev/null and b/content/media/ilustr/zdjecie 5.jpg differ
diff --git a/content/media/images/favicon.png b/content/media/images/favicon.png
deleted file mode 100644 (file)
index e2c98f1..0000000
Binary files a/content/media/images/favicon.png and /dev/null differ
diff --git a/content/media/images/listek.png b/content/media/images/listek.png
deleted file mode 100644 (file)
index ad3549f..0000000
Binary files a/content/media/images/listek.png and /dev/null differ
diff --git a/content/media/images/listek1.png b/content/media/images/listek1.png
deleted file mode 100644 (file)
index fc91a66..0000000
Binary files a/content/media/images/listek1.png and /dev/null differ
diff --git a/content/media/images/okladka.jpg b/content/media/images/okladka.jpg
new file mode 100644 (file)
index 0000000..c2de6e1
Binary files /dev/null and b/content/media/images/okladka.jpg differ
diff --git a/content/media/images/roza-1.png b/content/media/images/roza-1.png
deleted file mode 100644 (file)
index d1a2c72..0000000
Binary files a/content/media/images/roza-1.png and /dev/null differ
diff --git a/content/media/images/roza-2.png b/content/media/images/roza-2.png
deleted file mode 100644 (file)
index 01be2a0..0000000
Binary files a/content/media/images/roza-2.png and /dev/null differ
diff --git a/content/media/images/roza-3.png b/content/media/images/roza-3.png
deleted file mode 100644 (file)
index e8692e0..0000000
Binary files a/content/media/images/roza-3.png and /dev/null differ
diff --git a/content/media/images/roza-4.png b/content/media/images/roza-4.png
deleted file mode 100644 (file)
index 109233d..0000000
Binary files a/content/media/images/roza-4.png and /dev/null differ
diff --git a/content/media/images/roza-mala-1.png b/content/media/images/roza-mala-1.png
deleted file mode 100644 (file)
index 3865109..0000000
Binary files a/content/media/images/roza-mala-1.png and /dev/null differ
diff --git a/content/media/images/roza-mala-2.png b/content/media/images/roza-mala-2.png
deleted file mode 100644 (file)
index 8a95108..0000000
Binary files a/content/media/images/roza-mala-2.png and /dev/null differ
diff --git a/content/media/images/roza-mala-3.png b/content/media/images/roza-mala-3.png
deleted file mode 100644 (file)
index 6b639d8..0000000
Binary files a/content/media/images/roza-mala-3.png and /dev/null differ
diff --git a/content/media/images/roza-mala-4.png b/content/media/images/roza-mala-4.png
deleted file mode 100644 (file)
index b84550d..0000000
Binary files a/content/media/images/roza-mala-4.png and /dev/null differ
diff --git a/content/media/images/roza-mala.png b/content/media/images/roza-mala.png
deleted file mode 100644 (file)
index f8d4a76..0000000
Binary files a/content/media/images/roza-mala.png and /dev/null differ
diff --git a/content/media/images/roza-select-1.png b/content/media/images/roza-select-1.png
deleted file mode 100644 (file)
index a43b8b4..0000000
Binary files a/content/media/images/roza-select-1.png and /dev/null differ
diff --git a/content/media/images/roza-select-2.png b/content/media/images/roza-select-2.png
deleted file mode 100644 (file)
index 465ed70..0000000
Binary files a/content/media/images/roza-select-2.png and /dev/null differ
diff --git a/content/media/images/roza-select-3.png b/content/media/images/roza-select-3.png
deleted file mode 100644 (file)
index 86964fd..0000000
Binary files a/content/media/images/roza-select-3.png and /dev/null differ
diff --git a/content/media/images/roza-select-4.png b/content/media/images/roza-select-4.png
deleted file mode 100644 (file)
index fe93c41..0000000
Binary files a/content/media/images/roza-select-4.png and /dev/null differ
diff --git a/content/media/images/roza-select.png b/content/media/images/roza-select.png
deleted file mode 100644 (file)
index 699f4dc..0000000
Binary files a/content/media/images/roza-select.png and /dev/null differ
diff --git a/content/media/images/roza.png b/content/media/images/roza.png
deleted file mode 100644 (file)
index 0f92f48..0000000
Binary files a/content/media/images/roza.png and /dev/null differ
diff --git a/content/media/logos/icm-logo-1.png b/content/media/logos/icm-logo-1.png
new file mode 100644 (file)
index 0000000..f7dfa5a
Binary files /dev/null and b/content/media/logos/icm-logo-1.png differ
diff --git a/content/media/logos/icm-logo-2.png b/content/media/logos/icm-logo-2.png
new file mode 100644 (file)
index 0000000..80d8b92
Binary files /dev/null and b/content/media/logos/icm-logo-2.png differ
diff --git a/content/media/logos/nowoczesna-polska.png b/content/media/logos/nowoczesna-polska.png
new file mode 100644 (file)
index 0000000..675fc0d
Binary files /dev/null and b/content/media/logos/nowoczesna-polska.png differ
diff --git a/content/media/logos/pon.png b/content/media/logos/pon.png
new file mode 100644 (file)
index 0000000..dfff708
Binary files /dev/null and b/content/media/logos/pon.png differ
diff --git a/content/media/logos/prawo-kultury-1.png b/content/media/logos/prawo-kultury-1.png
new file mode 100644 (file)
index 0000000..77de250
Binary files /dev/null and b/content/media/logos/prawo-kultury-1.png differ
diff --git a/content/media/logos/trust.png b/content/media/logos/trust.png
new file mode 100644 (file)
index 0000000..8c8e827
Binary files /dev/null and b/content/media/logos/trust.png differ
diff --git a/content/texts/intro/autor-uzytkownik-posrednik.html b/content/texts/intro/autor-uzytkownik-posrednik.html
deleted file mode 100644 (file)
index 10c3afa..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
----
-title: "Autor, użytkownik, pośrednik – w poszukiwaniu równowagi"
-author: "Miłada Jędrysik"
-author_label: "autorka"
-order: 5
----
-
-{% block top_title %}Autor, użytkownik, pośrednik<sup
-title="W całym raporcie staram się konsekwentnie stosować zarówno
-męskie jak i żeńskie formy, jednak w samym opisie trzech głównych
-aktorów pola kultury – autor, użytkownik, pośrednik – ze względu
-na wygodę czytelniczek i czytelników zdecydowałam się pozostawić
-wyłącznie jedną formę gramatyczną.
-
-Rozróżniam też w tekście autorki i autorów jako podmioty prawa
-autorskiego od twórczyń i twórców rozumianych jako osoby zawodowo
-zajmujące się jakąś dziedziną działalności artystycznej. Więcej na
-temat polityki języka w debacie o prawie autorskim znajdziecie
-na stronach Fundacji Nowoczesna Polska: prawokultury.pl oraz
-copyspeak.org. [przypis red. - MŚ]">*</sup> – w poszukiwaniu równowagi{% endblock %}
-
-{% block lead %}
-NAPIĘCIE POMIĘDZY PRAWAMI
-I PRZYWILEJAMI AUTORÓW,
-POŚREDNIKÓW I UŻYTKOWNIKÓW DZIEŁ
-KULTURY JEST INTEGRALNYM ELEMENTEM
-PRAWA AUTORSKIEGO OD POCZĄTKU
-JEGO POWSTANIA. UPOWSZECHNIENIE
-SIĘ INTERNETU JESZCZE TO NAPIĘCIE
-WZMOCNIŁO, DLATEGO WARTO
-PRZEDYSKUTOWAĆ KSZTAŁT RELACJI
-PRZEZ TO PRAWO BUDOWANYCH I ICH
-WPŁYW NA ŻYCIE SPOŁECZNE
-{% endblock %}
-
-{% block text %}
-{% endblock %}
diff --git a/content/texts/intro/co-nada-ksztalt-przyszlosci.html b/content/texts/intro/co-nada-ksztalt-przyszlosci.html
deleted file mode 100644 (file)
index 22e6389..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: "Co nada kształt przyszłości?"
-author: "Maria Świetlik"
-author_label: "autorka"
-order: 4
----
-
-{% block lead %}
-{% endblock %}
-
-{% block text %}
-{% endblock %}
diff --git a/content/texts/intro/czekajac-na-przelom.html b/content/texts/intro/czekajac-na-przelom.html
deleted file mode 100644 (file)
index fec1de2..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
----
-title: "Czekając na przełom"
-author: "Edwin Bendyk"
-order: 3
----
-
-{% block lead %}
-{% endblock %}
-
-{% block text %}
-{% endblock %}
diff --git a/content/texts/intro/morfologia-bajki.html b/content/texts/intro/morfologia-bajki.html
deleted file mode 100644 (file)
index 8ea11ed..0000000
+++ /dev/null
@@ -1,286 +0,0 @@
----
-title: "Morfologia bajki prawnie chronionej"
-order: 2
-author: 'Aymeric Mansoux'
-author_add: 'tłumaczka: Katarzyna Makaruk'
----
-
-{% block lead %}
-Na podstawie _morfologii bajki magicznej_
-[Władimira Proppa](http://pl.wikipedia.org/wiki/W%C5%82adimir_Propp) (1928).
-Badania tradycyjnych rosyjskich bajek ludowych pozwoliły Proppowi
-rozłożyć narracyjną strukturę bajki na trzydzieści jeden funkcji,
-a dokładniej – okryć recepturę pozwalającą tworzyć historie
-nowe i pochodne.
-
-Tekst zdobył pierwszą nagrodę w konkursie Future of Copyright 2012
-organizowanym przez Fundację Nowoczesna Polska.
-{% endblock %}
-
-
-
-{% block text %}
-
-1. Odejście
------------
-
-Dawno, dawno temu w cudownej Bajkowej Dolinie żyła
-była twórczyni bajek, która przemyślawszy kwestię stosowności
-memetycznego dziedzictwa, postanowiła zrezygnować z anonimowych
-praktyk swojej społeczności.
-
-2. Zakaz
---------
-
-Gigantyczny napis ostrzega twórczynię: „Kiepski pomysł”.
-
-3. Naruszenie zakazu
---------------------
-
-Mimo wiralowej przestrogi twórczyni opuszcza swą
-społeczność i zaczyna podpisywać prace, aby w ten
-sposób potwierdzić indywidualny wkład w rozwój do-
-meny bajki.
-
-4. Wywiadywanie się
--------------------
-
-Na drodze ku autorstwu twórczyni spotyka Prawnika
-i Wydawcę.
-
-5. Przekazanie
---------------
-
-Prawnik przekazuje twórczyni prawa.
-
-6. Podstęp
-----------
-
-Twórczyni staje się Autorką.
-
-7. Wspomaganie
---------------
-
-Autorka i Wydawca zaczynają propagować w Bajkowej
-Dolinie ideę prawa autorskiego.
-
-8. Szkodzenie
--------------
-
-Wydawca z pomocą Prawnika wykorzystuje Autorkę,
-by przekształcić Dolinę w dochodową fabrykę bajek.
-
-9. Pośrednictwo
----------------
-
-Do Autorki wydzwania inna twórczyni, którą prześla-
-duje Wydawca, doprowadzając do rozpaczy oskarże-
-niami o tworzenie pochodnych bajek objętych pra-
-wem autorskim.
-
-10. Początek przeciwdziałania 
------------------------------
-
-Autorka słyszy dźwięk fletu. Wolna muzyka dobiega
-z obozowiska znajdującego się poza Bajkową Doliną.
-
-11. Wyprawa
------------
-
-Podążając za muzyką, Autorka opuszcza opanowaną
-przez prawo autorskie Dolinę i rusza w kierunku obo-
-zowiska. W pewnej odległości za nią idzie Prawnik.
-
-12. Pierwsza funkcja donatora
------------------------------
-
-Przybywszy do obozowiska, Autorka spotyka Mężczyznę
-z Brodą, od którego dowiaduje się, że wszelkie użytecz-
-ne informacje powinny być wolne, choć nie darmowe.
-Ukryty Prawnik nadstawia ucha. Mężczyzna z Brodą
-wraca do gry na flecie.
-
-13. Reakcja bohatera
---------------------
-
-Opuszczając obozowisko, Autorka zastanawia się, czy
-formy kulturowej ekspresji także mogą być wolne i czy
-da się je jakoś oswobodzić od prawa autorskiego.
-
-14. Przekazanie/otrzymanie środka magicznego
---------------------------------------------
-Przed Autorką pojawia się Prawnik i wręcza jej wolne
-licencje.
-
-15. Przemieszczenie przestrzenne między dwoma królestwami
----------------------------------------------------------
-
-Z  pomocą kultury remiksu Prawnik wykorzystuje
-Autorkę, by przekształcić Bajkową Dolinę w technicz-
-no-prawny labirynt, obszar nieskrępowanej biurokracji.
-
-16. Walka
----------
-
-W zalewie licencji Autorka nie potrafi poradzić sobie
-z coraz większą złożonością swej twórczej domeny.
-Czuje, że zupełnie straciła kontrolę nad dziełami, któ-
-re Prawnik i Wydawca wykorzystują jako pożywkę dla
-rozrastającej się wciąż sieci informacji.
-
-17. Znamię
-----------
-Niezależnie od pierwotnych intencji wszystkie dzieła
-Autorki zostają ometkowane różnymi logami – iko-
-niczną reprezentacją zrozumiałych ponoć dla ludzi ak-
-tów prawnych. Akty te wspierają sprzeczne ideologie,
-interesy handlowe i przekonania, które dzięki prawu
-autorskiemu i próbom ich obejścia (inspirowanym ideą
-copyleft) zyskały teraz uzasadnienie.
-
-18. Zwycięstwo
---------------
-
-Jedyną drogą ucieczki jest ignorowanie prawa autor-
-skiego bez względu na konsekwencje. Trzeba zostawić
-wszystko, by odnieść maleńkie indywidualne zwycięstwo
-nad techniczno-prawną machiną i zrobić pierwszy krok
-na drodze do wyzwolenia Bajkowej Doliny.
-
-19. Likwidacja nieszczęścia lub braku
--------------------------------------
-
-W rezultacie Autorka staje się Piratką – dzieł własnych
-i cudzych. Zakłada na oko przepaskę.
-
-20. Powrót bohatera
--------------------
-
-Piratka wraca do Baśniowej Doliny, całkowicie już teraz
-rozparcelowanej i podzielonej przez najrozmaitsze for-
-my licencji: copyfree, copyright, copyleft i copyfarleft.
-Wydawca i Prawnik dbają, by wszystko działało spraw-
-nie i gładko. Morfologia bajki magicznej Władimira
-Proppa zostaje opatentowana i zamieniona w algorytm
-do produkcji freemium automatycznie karmiącego się
-całą otwartą treścią wytwarzaną w Dolinie.
-
-Piratka ma na ten temat coś do powiedzenia.
-
-21. Prześladowanie bohatera
----------------------------
-
-Dla imperium informacji, które stworzyli Wydawca
-i Prawnik, obecność Piratki stanowi poważne zagroże-
-nie. Dlatego obaj rozpoczynają kampanię dezinformacji,
-która ma podważyć zasadność wypowiedzi Piratki jako
-bezprawnych i tym samym moralnie nagannych.
-
-Kampanii tej towarzyszą coraz bardziej agresywne me-
-chanizmy nieuzasadnionej represji, działania wymierzone
-przeciwko twórcom, którzy chcieliby pójść w ślady Piratki.
-
-22. Ocalenie bohatera
----------------------
-
-Dzięki podziemnej siatce tuneli i jaskiń pod Doliną – te-
-raz już w pełni zinwigilowaną, na każdym kroku wyma-
-gającą uwierzytelniania, w całości objętą przez chmu-
-rę i podporządkowaną zasadzie grywalizacji – Piratce
-udaje się umknąć Wydawcy i Prawnikowi. 
-
-23. Nierozpoznane przybycie
----------------------------
-
-Wreszcie jednak, zamiast do końca swych dni żyć jak
-szczur, Piratka decyduje się stawić czoło sytuacji na
-powierzchni. Pojawia się nagle w samym środku sza-
-blonowych opowieści i tłumu zaskoczonych twórców,
-którym wyprano mózgi.
-
-24. Nieuzasadnione roszczenia
------------------------------
-
-Na scenę wkraczają Wydawca i Prawnik. Wygłaszają
-zwyczajową moralizatorską przemowę, dzięki której
-udaje im się zamknąć usta twórcom i utrzymać sy-
-tuację pod kontrolą. We wszystkich bajkach daje się
-wyczuć lęk przed kradzieżą, Dolina znajduje się na
-krawędzi paniki.
-
-25. Trudne zadanie
-------------------
-
-Wydawca i Prawnik rzucają Piratce wyzwanie. Twierdzą,
-że nie ma prawa wypowiadać się na temat sytuacji
-w Dolinie. Jest pasożytem, gapowiczem, który nie ma
-pojęcia, o jaką stawkę toczy się gra.
-
-26. Wykonanie zadania
----------------------
-
-Piratka zdejmuje przepaskę.
-
-27. Rozpoznanie
----------------
-
-W jednej chwili wszyscy twórcy rozpoznają Autorkę –
-tę, która swego czasu zaczęła podpisywać bajki dziś
-wykorzystywane jako licencjonowane szablony w fa-
-brykach Prawnika i Wydawcy. 
-
-Twórcy nadstawiają uszu...
-
-28. Zdemaskowanie uzurpatora
-----------------------------
-
-Autorka opowiada swoją historię. Gdy obudziła się w niej
-twórczyni, zaczęła eksperymentować z metodami za-
-czerpniętymi z innych dziedzin. Wykorzystywała je bez-
-pośrednio i nie wprost, a metodologii, które ją intere-
-sowały, było tyle, ile gwiazd na niebie. Kiedy zaś jej
-umiejętności wzrosły, poczuła potrzebę, by jakoś ozna-
-czyć swe dzieła. Ten niespodziewany paradoks mocno
-ją zdezorientował: z jednej strony chciała być zwykłym
-ogniwem w łańcuchu twórczej aktywności, z drugiej
-czuła instynktowną potrzebę, by stanąć ponad równy-
-mi, zabłysnąć, stać się widoczną i znaną dzięki indywi-
-dualnemu wkładowi. Chciała też po prostu zarobić na
-życie i dlatego uwierzyła, że prawo autorskie to model
-uczciwy, nieszkodliwy dla innych twórców i użytkowni-
-ków. Nie rozumiała, że żadne prawa kontraktowe, bez
-względu na intencje, które będą im przyświecały, nie
-mogą naśladować wolności, jaką mieszkańcy Doliny
-cieszyli się jako wspólnota twórców.
-Na każdym etapie dążenia do tego, by zrozumieć samą
-tkankę kultury, eksperymenty Autorki umożliwiali
-i wspierali Wydawca i Prawnik. Obaj jednak powoli ro-
-śli w siłę, aż wreszcie wymknęli się Autorce spod kon-
-troli. Dlatego czuje się odpowiedzialna przede wszyst-
-kim za to, że pozwoliła im decydować o warunkach
-wytwarzania i konsumowania jej dzieł i kultury w ogóle.
-
-Autorka przeprasza mieszkańców Doliny.
-
-29. Transfiguracja
-------------------
-
-Autorka znowu staje się twórczynią.
-
-30. Ukaranie wroga
-------------------
-
-Dzieło Wydawcy i  Prawnika zostaje zniszczone.
-Społeczność Bajkowej Doliny zakazuje praw autorskich.
-
-31. Wesele
-----------
-
-Twórczyni zaślubia innego twórcę i żyją razem długo
-i szczęśliwie, płodząc wiele nowych bajek magicznych.
-
-Jeśli zaś chodzi o Mężczyznę z Brodą, to słyszałam, że
-zamienił swe obozowisko w browar. Ale to zupełnie
-inna historia...
-
-{% endblock %}
\ No newline at end of file
index 2b7a6a2..bd9b17d 100644 (file)
@@ -1,6 +1,6 @@
 ---
 title: Wstęp
-author: Jarosław Lipszyc
+author: Magdalena Biernat
 order: 1
 ---
 
diff --git a/content/texts/main/dolina-muminkow.html b/content/texts/main/dolina-muminkow.html
deleted file mode 100644 (file)
index b9ac87a..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
----
-title: "Dolina muminków"
-order: 2
----
-
diff --git a/content/texts/main/klondike.html b/content/texts/main/klondike.html
deleted file mode 100644 (file)
index 2282c1d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: "Klondike"
-order: 3
----
-
-
-Treść!
diff --git a/content/texts/main/meta.yaml b/content/texts/main/meta.yaml
deleted file mode 100644 (file)
index 4378967..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-extends: scenario.j2
-section: main
\ No newline at end of file
diff --git a/content/texts/main/mordor.html b/content/texts/main/mordor.html
deleted file mode 100644 (file)
index f81ecb7..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: "Mordor"
-order: 4
----
-
-
-Treść!
diff --git a/content/texts/main/plac-broni.html b/content/texts/main/plac-broni.html
deleted file mode 100644 (file)
index 617e16c..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
----
-title: "Plac broni"
-order: 1
----
-
-
-{% block lead -%}
-> „NIE BOJĘ SIĘ NIKOGO Z WAS.
-A GDY PRZYJDZIECIE DO NAS, NA PLAC
-BRONI, ZABRAĆ NAM NASZĄ ZIEMIĘ,
-TO BĘDZIEMY NA WAS CZEKAĆ.
-I POKAŻĘ WAM, ŻE KIEDY BĘDZIE NAS
-dziesięciu, tyle samo co was,
-to zupełnie inaczej porozmawiamy.
-Teraz jestem tu sam.”
-
-Ferenc Molnar, Chłopcy z Placu Broni  
-tłum. xxxx
-{% endblock %}
-
-
-{% block text %}
-
-
-Nagłówek
---------
-
-Tekst
-
-Pozycja
--------
-
-{{ pozycja(1, 2, 5) }}
-{% endblock %}
-
diff --git a/content/texts/outro/co-nas-czeka.html b/content/texts/outro/co-nas-czeka.html
deleted file mode 100644 (file)
index d9e551d..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: "Co nas czeka?"
-author: "Miłada Jędrysik"
-author_label: "autorka"
-order: 1
----
-
-{% block lead %}
-{% endblock %}
-
-{% block text %}
-{% endblock %}
diff --git a/content/texts/outro/metodologia.html b/content/texts/outro/metodologia.html
deleted file mode 100644 (file)
index f81183b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
----
-title: "Jak myśleć o odległej przyszłości, czyli jak powstawały scenariusze"
-author: "Tomasz Kasprzak, Martyna Woropińska"
-author_label: "autorzy"
-order: 2
----
-
-{% block lead %}
-{% endblock %}
-
-{% block text %}
-{% endblock %}
diff --git a/content/texts/outro/o-projekcie.html b/content/texts/outro/o-projekcie.html
deleted file mode 100644 (file)
index aa11df1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: "O projekcie"
-order: 4
----
-
-{% block lead %}
-{% endblock %}
-
-{% block text %}
-{% endblock %}
diff --git a/content/texts/outro/zespol.html b/content/texts/outro/zespol.html
deleted file mode 100644 (file)
index 5554390..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
----
-title: "Zespół"
-order: 3
----
-
-{% block lead %}
-{% endblock %}
-
-{% block text %}
-
-Ekspertki i eksperci:
----------------------
-
-<div class="twocol">
-{% filter markdown %}
-
-<p><strong>Marcin Beme</strong><br/>
-twórca serwisu z audiobukami Audioteka.pl</p>
-
-<p><strong>Ana Brzezińska</strong><br/>
-reżyserka filmowa, producentka i tłumaczka</p>
-
-**Radek Czajka**  
-programista, autor strony stratakazika.pl,
-działacz ruchu na rzecz wolnej kultury
-
-{% endfilter %}</div>
-
-Zespół autorski:
-----------------
-
-<div class="twocol">
-{% filter markdown %}
-
-**Edwin Bendyk**  
-dziennikarz Tygodnika „Polityka”, publicysta,
-zajmujący się problematyką cywilizacyjną
-i wpływem technologii na życie społeczne;
-wykładowca Collegium Civitas.
-
-**MIŁADA JĘDRYSIK**  
-dziennikarka, redaktorka portalu culture.pl.
-
-**TOMASZ KASPRZAK**  
-socjolog, Instytut Badań Edukacyjnych.
-
-**MARIA ŚWIETLIK**  
-antropolożka kultury, redaktorka i koordynatorka
-projektów badawczych.
-
-**MARTYNA WOROPIŃSKA**  
-specjalistka ds. szkoleń, Fundacji Rozwoju
-Społeczeństwa Informacyjnego (FRSI), koordynatorka
-badania „Scenariusze przyszłości bibliotek”.
-
-{% endfilter %}</div>
-
-{% endblock %}
diff --git a/dev/PON_LOGO_PION_PODSTAWA_KOLOR_pl_rgb.png b/dev/PON_LOGO_PION_PODSTAWA_KOLOR_pl_rgb.png
new file mode 100644 (file)
index 0000000..8983f73
Binary files /dev/null and b/dev/PON_LOGO_PION_PODSTAWA_KOLOR_pl_rgb.png differ
diff --git a/dev/PON_LOGO_PODSTAWA_KOLOR_pl_rgb.png b/dev/PON_LOGO_PODSTAWA_KOLOR_pl_rgb.png
new file mode 100644 (file)
index 0000000..7ecf3d2
Binary files /dev/null and b/dev/PON_LOGO_PODSTAWA_KOLOR_pl_rgb.png differ
diff --git a/dev/icm-logo-1.png b/dev/icm-logo-1.png
new file mode 100644 (file)
index 0000000..cc08d5e
Binary files /dev/null and b/dev/icm-logo-1.png differ
diff --git a/dev/icm-logo-2.png b/dev/icm-logo-2.png
new file mode 100644 (file)
index 0000000..a833d48
Binary files /dev/null and b/dev/icm-logo-2.png differ
diff --git a/dev/icm-logo-green.png b/dev/icm-logo-green.png
new file mode 100644 (file)
index 0000000..59ffcb3
Binary files /dev/null and b/dev/icm-logo-green.png differ
diff --git a/dev/icm-logo.png b/dev/icm-logo.png
new file mode 100644 (file)
index 0000000..36d23b4
Binary files /dev/null and b/dev/icm-logo.png differ
diff --git a/dev/nowoczesna-polska.eps b/dev/nowoczesna-polska.eps
new file mode 100644 (file)
index 0000000..08c9ef8
--- /dev/null
@@ -0,0 +1,262 @@
+%!PS-Adobe-3.0 EPSF-3.0
+%%Creator: cairo 1.10.2 (http://cairographics.org)
+%%CreationDate: Tue Feb  7 16:33:00 2012
+%%Pages: 1
+%%BoundingBox: 0 -1 630 218
+%%DocumentData: Clean7Bit
+%%LanguageLevel: 2
+%%EndComments
+%%BeginProlog
+/cairo_eps_state save def
+/dict_count countdictstack def
+/op_count count 1 sub def
+userdict begin
+/q { gsave } bind def
+/Q { grestore } bind def
+/cm { 6 array astore concat } bind def
+/w { setlinewidth } bind def
+/J { setlinecap } bind def
+/j { setlinejoin } bind def
+/M { setmiterlimit } bind def
+/d { setdash } bind def
+/m { moveto } bind def
+/l { lineto } bind def
+/c { curveto } bind def
+/h { closepath } bind def
+/re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto
+      0 exch rlineto 0 rlineto closepath } bind def
+/S { stroke } bind def
+/f { fill } bind def
+/f* { eofill } bind def
+/n { newpath } bind def
+/W { clip } bind def
+/W* { eoclip } bind def
+/BT { } bind def
+/ET { } bind def
+/pdfmark where { pop globaldict /?pdfmark /exec load put }
+    { globaldict begin /?pdfmark /pop load def /pdfmark
+    /cleartomark load def end } ifelse
+/BDC { mark 3 1 roll /BDC pdfmark } bind def
+/EMC { mark /EMC pdfmark } bind def
+/cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def
+/Tj { show currentpoint cairo_store_point } bind def
+/TJ {
+  {
+    dup
+    type /stringtype eq
+    { show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse
+  } forall
+  currentpoint cairo_store_point
+} bind def
+/cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore
+    cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def
+/Tf { pop /cairo_font exch def /cairo_font_matrix where
+      { pop cairo_selectfont } if } bind def
+/Td { matrix translate cairo_font_matrix matrix concatmatrix dup
+      /cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point
+      /cairo_font where { pop cairo_selectfont } if } bind def
+/Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def
+      cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def
+/g { setgray } bind def
+/rg { setrgbcolor } bind def
+/d1 { setcachedevice } bind def
+%%EndProlog
+%%Page: 1 1
+%%BeginPageSetup
+%%PageBoundingBox: 0 -1 630 218
+%%EndPageSetup
+q 0 -1 630 219 rectclip q
+0 217.46 630 -218 re W n
+0.376471 0.364706 0.360784 rg
+291.172 19.928 m 303.199 19.928 l 303.199 40.378 l 307.066 40.378 l 
+312.133 40.378 314.539 40.807 317.117 42.268 c 322.703 45.276 325.969 
+51.292 325.969 58.506 c 325.969 64.178 324.164 69.163 320.727 72.596 c 
+317.375 76.034 313.852 77.237 307.668 77.237 c 291.172 77.237 l h
+303.199 51.463 m 303.199 66.155 l 305.863 66.155 l 308.785 66.155 
+309.816 65.897 311.102 64.866 c 312.562 63.577 313.336 61.6 313.336 
+58.85 c 313.336 56.014 312.562 54.042 311.102 52.753 c 309.816 51.721 
+308.785 51.463 305.863 51.463 c h
+346.586 65.725 m 335.848 65.725 329.145 56.702 329.145 42.44 c 329.145 
+28.092 335.848 19.057 346.586 19.057 c 357.328 19.057 364.027 27.92 
+364.027 41.924 c 364.027 56.96 357.586 65.725 346.586 65.725 c h
+346.586 55.67 m 350.711 55.67 352.773 51.12 352.773 42.096 c 352.773 
+33.764 350.539 29.124 346.586 29.124 c 344.27 29.124 342.723 30.413 
+341.777 33.077 c 340.918 35.569 340.402 38.917 340.402 42.44 c 340.402 
+45.878 340.918 49.229 341.777 51.721 c 342.723 54.381 344.27 55.67 
+346.586 55.67 c h
+369.957 19.928 m 381.043 19.928 l 381.043 77.237 l 369.957 77.237 l h
+385.594 34.28 m 386.453 24.655 392.383 19.057 401.746 19.057 c 406.215 
+19.057 410.082 20.272 412.832 22.592 c 415.75 25.085 417.727 29.467 
+417.727 33.506 c 417.727 39.174 415.238 43.471 410.598 45.878 c 408.879 
+46.737 406.73 47.51 403.723 48.37 c 400.629 49.229 399.598 49.659 
+398.824 50.26 c 398.141 50.948 397.711 51.979 397.711 53.01 c 397.711 
+54.983 399.172 56.272 401.488 56.272 c 404.066 56.272 405.441 54.557 
+405.699 51.292 c 416.695 51.292 l 415.75 60.483 409.996 65.725 400.887 
+65.725 c 392.383 65.725 386.453 60.225 386.453 52.151 c 386.453 48.628 
+387.828 45.018 390.062 42.612 c 391.867 40.721 394.188 39.432 398.141 
+38.229 c 400.973 37.284 400.113 37.542 400.973 37.284 c 403.293 36.51 
+403.379 36.51 403.637 36.428 c 405.441 35.741 406.473 34.366 406.473 
+32.733 c 406.473 30.241 404.668 28.522 402.004 28.522 c 398.742 28.522 
+397.023 30.413 396.594 34.28 c h
+434.055 77.237 m 422.969 77.237 l 422.969 19.928 l 434.055 19.928 l 
+434.055 35.225 l 436.887 39.518 l 444.02 19.928 l 455.531 19.928 l 
+443.762 48.026 l 454.414 64.866 l 442.73 64.866 l 434.055 48.713 l h
+489.812 64.866 m 480.105 64.866 l 480.105 60.311 l 478.559 63.749 
+475.207 65.725 470.824 65.725 c 461.805 65.725 456.477 56.96 456.477 
+42.01 c 456.477 27.835 461.977 19.057 470.824 19.057 c 475.035 19.057 
+477.957 20.702 480.105 24.483 c 480.105 19.928 l 489.812 19.928 l h
+478.73 38.487 m 478.73 34.71 478.473 33.335 477.613 31.702 c 476.754 
+30.155 475.121 29.124 473.402 29.124 c 469.453 29.124 467.734 32.991 
+467.734 42.01 c 467.734 51.463 469.453 55.67 473.402 55.67 c 476.754 
+55.67 478.73 52.753 478.73 47.596 c h
+478.73 38.487 m f
+290.219 97.315 m 300.109 97.315 l 300.109 123.151 l 300.109 127.37 
+301.41 129.21 304.402 129.21 c 306.012 129.21 307.543 128.213 307.926 
+126.831 c 308.156 126.221 308.309 124.838 308.309 123.46 c 308.309 
+97.315 l 318.199 97.315 l 318.199 126.065 l 318.199 133.503 313.906 
+138.178 307.008 138.178 c 302.867 138.178 300.414 136.721 298.879 
+133.35 c 298.879 137.413 l 290.219 137.413 l h
+339.051 138.178 m 329.469 138.178 323.488 130.128 323.488 117.401 c 
+323.488 104.6 329.469 96.538 339.051 96.538 c 348.637 96.538 354.617 
+104.448 354.617 116.944 c 354.617 130.358 348.867 138.178 339.051 
+138.178 c h
+339.051 129.21 m 342.734 129.21 344.574 125.147 344.574 117.096 c 
+344.574 109.659 342.578 105.518 339.051 105.518 c 336.984 105.518 
+335.602 106.67 334.758 109.045 c 333.992 111.268 333.531 114.26 333.531 
+117.401 c 333.531 120.467 333.992 123.46 334.758 125.682 c 335.602 
+128.057 336.984 129.21 339.051 129.21 c h
+365.809 137.413 m 355.754 137.413 l 365.809 97.315 l 374.855 97.315 l 
+380.066 123.612 l 385.281 97.315 l 394.402 97.315 l 404.371 137.413 l 
+394.402 137.413 l 391.797 124.073 l 390.492 117.249 390.34 115.87 
+389.805 109.506 c 389.344 115.487 389.113 116.635 387.273 124.073 c 
+384.055 137.413 l 376.082 137.413 l 372.402 122.081 l 372.324 121.694 
+372.172 120.854 371.789 118.936 c 371.48 117.631 371.328 116.866 371.25 
+116.1 c 370.637 113.417 370.562 112.651 370.332 109.506 c 370.18 
+112.038 370.023 113.569 369.871 114.874 c 369.562 117.096 369.105 
+119.932 368.797 121.467 c h
+420.93 138.178 m 411.348 138.178 405.367 130.128 405.367 117.401 c 
+405.367 104.6 411.348 96.538 420.93 96.538 c 430.512 96.538 436.492 
+104.448 436.492 116.944 c 436.492 130.358 430.742 138.178 420.93 
+138.178 c h
+420.93 129.21 m 424.609 129.21 426.449 125.147 426.449 117.096 c 
+426.449 109.659 424.457 105.518 420.93 105.518 c 418.859 105.518 417.48 
+106.67 416.637 109.045 c 415.871 111.268 415.41 114.26 415.41 117.401 c 
+415.41 120.467 415.871 123.46 416.637 125.682 c 417.48 128.057 418.859 
+129.21 420.93 129.21 c h
+468.461 121.694 m 468.152 126.831 467.695 129.057 466.16 131.967 c 
+464.016 136.034 460.18 138.178 455.199 138.178 c 449.68 138.178 445.77 
+135.803 443.238 130.819 c 441.32 126.831 440.402 122.538 440.402 
+117.096 c 440.402 111.651 441.707 106.44 443.93 102.608 c 446.305 
+98.467 449.832 96.538 454.891 96.538 c 463.246 96.538 467.926 101.995 
+468.309 112.268 c 458.648 112.268 l 458.496 107.514 457.422 105.596 
+454.891 105.596 c 453.203 105.596 451.672 107.053 451.211 109.124 c 
+450.676 111.116 450.445 114.182 450.445 117.479 c 450.445 120.393 
+450.676 123.077 451.211 125.378 c 451.746 127.831 453.051 129.21 
+454.738 129.21 c 456.117 129.21 457.191 128.518 457.883 127.217 c 
+458.418 126.295 458.57 125.221 458.648 122.616 c 458.648 121.694 l h
+497.285 105.518 m 482.336 105.518 l 497.285 128.674 l 497.285 137.413 l 
+472.602 137.413 l 472.602 129.21 l 485.863 129.21 l 470.992 106.057 l 
+470.992 97.315 l 497.285 97.315 l h
+530.941 114.413 m 530.941 116.405 l 530.941 123.307 530.023 127.753 
+527.723 131.737 c 525.27 135.878 521.129 138.178 516.145 138.178 c 
+506.18 138.178 500.277 130.053 500.277 116.405 c 500.277 111.651 
+501.426 106.975 503.422 103.452 c 506.027 98.928 510.32 96.538 515.914 
+96.538 c 524.043 96.538 529.484 101.686 530.559 110.35 c 520.898 110.35 
+l 520.133 106.901 518.367 104.983 515.84 104.983 c 513.461 104.983 
+511.621 106.592 510.855 109.506 c 510.473 110.811 510.32 111.96 510.242 
+114.413 c h
+510.32 121.85 m 510.395 127.061 512.234 129.745 515.688 129.745 c 
+518.906 129.745 520.82 126.756 520.898 121.85 c h
+533.703 110.12 m 534.469 101.534 539.758 96.538 548.113 96.538 c 
+552.102 96.538 555.551 97.624 558.004 99.694 c 560.609 101.917 562.375 
+105.827 562.375 109.428 c 562.375 114.491 560.152 118.323 556.012 
+120.467 c 554.477 121.237 552.562 121.924 549.879 122.694 c 547.117 
+123.46 546.199 123.842 545.508 124.378 c 544.895 124.995 544.512 
+125.913 544.512 126.831 c 544.512 128.596 545.816 129.745 547.887 
+129.745 c 550.184 129.745 551.41 128.213 551.641 125.299 c 561.453 
+125.299 l 560.609 133.503 555.473 138.178 547.348 138.178 c 539.758 
+138.178 534.469 133.272 534.469 126.065 c 534.469 122.924 535.695 
+119.702 537.688 117.557 c 539.297 115.87 541.367 114.721 544.895 
+113.647 c 547.426 112.803 546.66 113.034 547.426 112.803 c 549.496 
+112.112 549.57 112.112 549.801 112.038 c 551.41 111.424 552.332 110.198 
+552.332 108.741 c 552.332 106.518 550.723 104.983 548.344 104.983 c 
+545.43 104.983 543.898 106.67 543.516 110.12 c h
+567.051 97.315 m 576.941 97.315 l 576.941 123.151 l 576.941 127.37 
+578.242 129.21 581.234 129.21 c 582.844 129.21 584.375 128.213 584.762 
+126.831 c 584.988 126.221 585.145 124.838 585.145 123.46 c 585.145 
+97.315 l 595.035 97.315 l 595.035 126.065 l 595.035 133.503 590.738 
+138.178 583.84 138.178 c 579.699 138.178 577.246 136.721 575.715 133.35 
+c 575.715 137.413 l 567.051 137.413 l h
+629.992 137.413 m 621.328 137.413 l 621.328 133.35 l 619.949 136.417 
+616.957 138.178 613.051 138.178 c 605 138.178 600.246 130.358 600.246 
+117.018 c 600.246 104.37 605.152 96.538 613.051 96.538 c 616.805 96.538 
+619.41 98.006 621.328 101.381 c 621.328 97.315 l 629.992 97.315 l h
+620.102 113.878 m 620.102 110.503 619.871 109.276 619.105 107.819 c 
+618.34 106.44 616.883 105.518 615.348 105.518 c 611.824 105.518 610.289 
+108.971 610.289 117.018 c 610.289 125.452 611.824 129.21 615.348 129.21 
+c 618.34 129.21 620.102 126.604 620.102 122.003 c h
+620.102 113.878 m f
+290.363 168.592 m 296.469 168.592 l 296.469 180.534 l 304.879 180.534 l 
+304.879 186.155 l 296.469 186.155 l 296.469 192.038 l 304.879 192.038 l 
+304.879 197.663 l 290.363 197.663 l h
+331.102 197.663 m 331.102 178.092 l 331.102 174.342 331.668 172.471 
+333.367 170.725 c 335.113 168.94 338.074 167.842 341.168 167.842 c 
+343.961 167.842 346.75 168.764 348.535 170.292 c 350.496 171.948 
+351.281 174.17 351.281 178.092 c 351.281 197.663 l 345.18 197.663 l 
+345.18 178.092 l 345.18 176.217 345.004 175.608 344.352 174.823 c 
+343.609 173.909 342.566 173.471 341.039 173.471 c 339.73 173.471 
+338.688 173.952 337.945 174.823 c 337.336 175.651 337.203 176.217 
+337.203 178.092 c 337.203 197.663 l h
+378.812 168.592 m 384.914 168.592 l 384.914 179.311 l 384.914 181.01 
+384.871 182.842 384.871 184.194 c 384.785 185.936 384.738 186.721 
+384.523 188.901 c 384.871 187.592 385 186.94 385.262 186.198 c 385.742 
+184.803 386.484 182.842 387.094 181.448 c 392.672 168.592 l 398.383 
+168.592 l 398.383 197.663 l 392.281 197.663 l 392.281 187.854 l 392.281 
+184.151 392.324 183.28 392.586 179.749 c 392.281 180.753 392.281 
+180.663 391.715 182.19 c 390.406 185.588 390.492 185.46 389.188 188.116 
+c 384.652 197.663 l 378.812 197.663 l h
+426.133 168.592 m 434.762 168.592 l 438.074 168.592 440.207 169.288 
+442.172 171.12 c 445.047 173.733 446.703 178.135 446.703 183.19 c 
+446.703 187.331 445.656 190.948 443.652 193.608 c 441.473 196.53 
+438.945 197.663 434.805 197.663 c 426.133 197.663 l h
+432.234 174.213 m 432.234 192.038 l 433.801 192.038 l 436.07 192.038 
+436.941 191.823 437.855 191.081 c 439.469 189.772 440.297 186.983 
+440.297 182.975 c 440.297 179.663 439.641 177.178 438.336 175.694 c 
+437.465 174.647 436.285 174.213 434.457 174.213 c h
+470.172 168.592 m 476.543 168.592 l 478.332 174.213 l 485.871 174.213 l 
+487.656 168.592 l 494.02 168.592 l 485.043 197.663 l 479.203 197.663 l 
+h
+484.867 179.225 m 479.203 179.225 l 482.078 190.948 l h
+539.641 186.241 m 539.336 193.784 535.238 198.401 528.918 198.401 c 
+522.031 198.401 517.543 192.389 517.543 183.147 c 517.543 173.866 
+522.031 167.842 528.918 167.842 c 535.238 167.842 539.336 172.514 
+539.641 180.01 c 533.32 180.01 l 533.191 178.178 533.059 177.44 532.754 
+176.479 c 532.102 174.561 530.75 173.471 528.961 173.471 c 525.91 
+173.471 523.992 177.178 523.992 183.147 c 523.992 189.077 525.91 192.78 
+528.961 192.78 c 530.75 192.78 532.102 191.69 532.754 189.772 c 533.059 
+188.858 533.191 188.073 533.32 186.241 c h
+580.637 197.663 m 574.535 197.663 l 574.535 176.917 l 574.535 174.475 
+573.84 173.471 572.141 173.471 c 571.051 173.471 570.309 174.17 570.004 
+175.475 c 569.875 176.045 569.828 176.612 569.828 177.831 c 563.719 
+177.831 l 563.719 176.874 l 563.719 171.553 567.172 167.842 572.141 
+167.842 c 574.754 167.842 577.152 168.897 578.719 170.639 c 580.07 
+172.21 580.637 174.038 580.637 176.874 c h
+605.285 168.592 m 611.656 168.592 l 613.445 174.213 l 620.984 174.213 l 
+622.77 168.592 l 629.133 168.592 l 620.156 197.663 l 614.316 197.663 l 
+h
+619.98 179.225 m 614.316 179.225 l 617.191 190.948 l h
+619.98 179.225 m f
+0.905882 0.470588 0.0901961 rg
+0 217.46 m 98.75 217.46 l 98.75 205.819 l 17.824 205.819 l 17.824 30.69 
+l 98.754 30.69 l 98.754 19.049 l 0 19.049 l h
+0 217.46 m f
+212.828 198.409 m 120.492 198.409 l 120.492 186.768 l 194.48 186.768 l 
+194.48 11.639 l 118.512 11.639 l 118.512 -0.001 l 212.828 -0.001 l h
+212.828 198.409 m f
+Q Q
+showpage
+%%Trailer
+count op_count sub {pop} repeat
+countdictstack dict_count sub {end} repeat
+cairo_eps_state restore
+%%EOF
diff --git a/dev/nowoczesna-polska.png b/dev/nowoczesna-polska.png
new file mode 100644 (file)
index 0000000..f527c4c
Binary files /dev/null and b/dev/nowoczesna-polska.png differ
diff --git a/dev/pon.png b/dev/pon.png
new file mode 100644 (file)
index 0000000..927001e
Binary files /dev/null and b/dev/pon.png differ
diff --git a/dev/prawo-kultury-1.png b/dev/prawo-kultury-1.png
new file mode 100644 (file)
index 0000000..1f7a352
Binary files /dev/null and b/dev/prawo-kultury-1.png differ
diff --git a/dev/prawo-kultury.png b/dev/prawo-kultury.png
new file mode 100644 (file)
index 0000000..5b24b37
Binary files /dev/null and b/dev/prawo-kultury.png differ
diff --git a/dev/trust.eps b/dev/trust.eps
new file mode 100644 (file)
index 0000000..4e9d22d
Binary files /dev/null and b/dev/trust.eps differ
diff --git a/dev/trust.png b/dev/trust.png
new file mode 100644 (file)
index 0000000..6c9c608
Binary files /dev/null and b/dev/trust.png differ
index 25fcaf4..c501462 100644 (file)
@@ -1,5 +1,5 @@
 {% macro site_name() -%}
-    Scenariusze przyszłości obiegu kultury
+    Krótki kurs własności intelektualnej
 {%- endmacro -%}
 
 {%- macro title() -%}
@@ -10,7 +10,9 @@
     <head>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title>{% block full_title %}{{ title() }} | {{ site_name() }}{% endblock %}</title>
-       <link rel="shortcut icon" type="image/png" href="{{ media_url("images/favicon.png") }}" />
+       <!--link rel="shortcut icon" type="image/png" href="{{ media_url("images/favicon.png") }}" /-->
+       <link rel="shortcut icon" type="image/png" href="/static/img/favicon.png" />
+       <link rel="stylesheet" type="text/css" href="{{ media_url("css/book_text.css") }}" />
        <link rel="stylesheet" type="text/css" href="{{ media_url("css/base.css") }}" />
 
         <meta charset="UTF-8" />
         <meta property='og:site_name' content='{{ site_name() }}' />
         <meta property='og:description' content='{% block og_description %}{% endblock %}' />
         <meta property='og:type' content='{% block og_type %}website{% endblock %}' />
-        <meta property='og:image' content='{% block og_image %}{{ domain }}{{ media_url("images/roza.png") }}{% endblock %}' />
+        <meta property='og:image' content='{% block og_image %}{{ domain }}{{ media_url("images/okladka.jpg") }}{% endblock %}' />
         <meta property='og:locale' content='pl_PL' />
     </head>
-    <body>
+    <body id="{% block bodyid %}base{% endblock %}"><div id="body">
         {% block body %}
 
         {% endblock %}
@@ -32,5 +34,5 @@
         </footer>
 
         {% include "piwik.j2" %}
-    </body>
+    </div></body>
 </html>
diff --git a/layout/scenario.j2 b/layout/scenario.j2
deleted file mode 100644 (file)
index 55117ff..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-{% extends "text.j2" %}
-
-{% block mainlink -%}
-    /#scenariusze
-{%- endblock %}
-
-{% block image -%}
-    {{ media_url('images/roza-mala-%d.png'|format(resource.meta.order)) }}
-{%- endblock %}
-
-{% block og_image -%}
-    {{ domain }}{{ media_url('images/roza-%d.png'|format(resource.meta.order)) }}
-{%- endblock %}
-
-
-
-{% macro pozycja(a, b, c) -%}
-<div class="pozycja">
-<p><span style="display: inline-block; width: 6em;">Autor:</span>
-{% for i in range(0, a) %}
-    <img style="width: 2em;" src="{{ media_url('images/listek1.png') }}">
-{% endfor %}</p>    
-<p><span style="display: inline-block; width: 6em;">Pośrednik:</span>
-{% for i in range(0, b) %}
-    <img style="width: 2em;" src="{{ media_url('images/listek1.png') }}">
-{% endfor %}</p>    
-<p><span style="display: inline-block; width: 6em;">Użytkownik:</span>
-{% for i in range(0, c) %}
-    <img style="width: 2em;" src="{{ media_url('images/listek1.png') }}">
-{% endfor %}</p>    
-</div>
-{%- endmacro %}
-
index 31d5c86..e6c4c29 100644 (file)
@@ -1,25 +1,50 @@
 {% extends "base.j2" %}
 
 {% block body %}
-<header>
-<a href="{% block mainlink %}/{% endblock %}">
-<img src="{% block image %}{{ media_url('images/roza-mala.png') }}{% endblock %}" />
+
+<a id="home-link" href="{{ content_url('') }}">
+Krótki kurs własności intelektualnej<br>
+Materiały dla wyższych uczelni
 </a>
 
+
+<header>
+
 <h1>
     {% block top_title %}{{ title() }}{% endblock %}
     {% if resource.meta.author -%}
         <div class="author">
-            {{ resource.meta.author_label }}: {{ resource.meta.author }}<br/>
+            {{ resource.meta.author }}<br/>
             {{ resource.meta.author_add }}
         </div>
     {%- endif %}
 </h1>
+
+
+<nav>
+{% if resource.prev_by_global_order %}
+    <a class="link-prev" href="{{ content_url(resource.prev_by_global_order.url) }}">
+    {{ resource.prev_by_global_order.meta.title }}</a>
+{% else %}
+    <a class="link-prev" href="{{ content_url('') }}">
+    Strona główna</a>
+{% endif %}
+
+{% if resource.next_by_global_order %}
+    <a class="link-next" href="{{ content_url(resource.next_by_global_order.url) }}">
+    {{ resource.next_by_global_order.meta.title }}</a>
+{% else %}
+    <a class="link-next" href="{{ content_url('') }}">
+    Strona główna</a>
+{% endif %}
 <div style="clear:both"></div>
+</nav>
+
 </header>
 
 
 <section class="main">
+{% block main %}
 
 <section id="lead">
     {%- filter markdown -%}
 
 </section>
 
+{% endblock %}
+
+
+<nav>
+{% if resource.prev_by_global_order %}
+    <a class="link-prev" href="{{ content_url(resource.prev_by_global_order.url) }}">
+    {{ resource.prev_by_global_order.meta.title }}</a>
+{% else %}
+    <a class="link-prev" href="{{ content_url('') }}">
+    Strona główna</a>
+{% endif %}
+
+{% if resource.next_by_global_order %}
+    <a class="link-next" href="{{ content_url(resource.next_by_global_order.url) }}">
+    {{ resource.next_by_global_order.meta.title }}</a>
+{% else %}
+    <a class="link-next" href="{{ content_url('') }}">
+    Strona główna</a>
+{% endif %}
+<div style="clear:both"></div>
+</nav>
+
 {% endblock %}
\ No newline at end of file
diff --git a/parse.py b/parse.py
new file mode 100755 (executable)
index 0000000..93e48a0
--- /dev/null
+++ b/parse.py
@@ -0,0 +1,112 @@
+#!/usr/bin/env python
+from __future__ import unicode_literals
+import json
+import os
+import re
+from urllib import unquote
+from urllib2 import urlopen
+from lxml.html import etree
+from fnpdjango.utils.text.slughifi import slughifi
+
+
+fin = urlopen('http://ofop.redakcja.wolnelektury.pl/documents/book/kurs-ip-dla-uniwersytetow/html')
+parser = etree.HTMLParser()
+tree = etree.parse(fin, parser)
+
+root = tree.xpath("//div[@id='book-text']")[0]
+rozdzial = None
+podrozdzial = None
+podrozdzial_n = 0
+
+def remove_tag(tag):
+    parent = tag.getparent()
+    if tag.tail:
+        prev = tag.getprevious()
+        if prev is not None:
+            prev.tail = (prev.tail or '') + tag.tail
+        else:
+            parent.text = (parent.text or '') + tag.tail
+    parent.remove(tag)
+
+
+def spojniki(text):
+    return re.sub(r'(\s|^)(\w)\s+', r'\1\2\u00a0', text)
+
+for tag in root.iter():
+    if tag.text:
+        tag.text = spojniki(tag.text)
+    if tag.tail:
+        tag.tail = spojniki(tag.tail)
+
+for ilustr in root.findall('.//img'):
+    if not ilustr.attrib['src'].endswith(('.png', '.jpg')):
+        ilustr.attrib['src'] = ilustr.attrib['src'].rsplit('.', 1)[0] + '.jpg'
+    ilustr.attrib['src'] = "{{ media_url('/ilustr/" + unquote(ilustr.attrib['src']) + "') }}"
+for target in root.findall(".//a[@class='target']"):
+    remove_tag(target)
+for target in root.findall(".//a[@class='anchor']"):
+    remove_tag(target)
+for target in root.findall(".//a"):
+    if target.attrib.get('class', '').startswith('sec'):
+        remove_tag(target)
+
+for target in root.findall(".//punkt"):
+    if target.getparent().tag not in ('ol', 'ul'):
+        print etree.tostring(target)
+for target in root.findall(".//ol/*"):
+    if target.tag != 'li':
+        print etree.tostring(target)
+for target in root.findall(".//ul/*"):
+    if target.tag != 'li':
+        print etree.tostring(target)
+for target in root.findall(".//table/*"):
+    if target.tag != 'tr':
+        print etree.tostring(target)
+for target in root.findall(".//tr"):
+    if target.getparent().tag != 'table':
+        print etree.tostring(target)
+for target in root.findall(".//tr/*"):
+    if target.tag != 'td':
+        print etree.tostring(target)
+for target in root.findall(".//td"):
+    if target.getparent().tag != 'tr':
+        print etree.tostring(target)
+
+for tag in root:
+    if tag.tag == 'h2':
+        print etree.tostring(tag)
+        rozdzial = slughifi(tag.text)
+        for f in os.listdir('content/import/%s' % rozdzial):
+            if f.endswith('.html'):
+                    os.unlink('content/import/%s/%s' % (rozdzial, f))
+        podrozdzial = None
+        podrozdzial_n = 0
+    elif tag.tag == 'h3':
+        tytul = tag.text
+        tytul = re.sub('^[0-9\. ]+', '', tytul)
+        slug = slughifi(tytul.split(':')[0])
+        if podrozdzial:
+            podrozdzial.close()
+        podrozdzial_n += 1
+        podrozdzial = open('content/import/%s/%s.html' % (rozdzial, slug), 'w')
+        podrozdzial.write((u'''---
+title: "%s"
+order: %d
+---
+
+''' % (tytul, podrozdzial_n)).encode('utf-8'))
+    elif podrozdzial:
+        if tag.tag == 'h4':
+            tag.text = re.sub('^[0-9\. ]+', '', tag.text)
+            tag.tag = 'h2'
+            slug = slughifi(tag.text)
+            etree.SubElement(tag, "a", {'class': 'permalink',
+                'id': slug, 'href': '#' + slug,
+                'title': 'Link do tego miejsca'})
+        elif tag.tag == 'h5':
+            tag.text = re.sub('^[0-9\. ]+', '', tag.text)
+            tag.tag = 'h3'
+        podrozdzial.write(etree.tostring(tag, encoding='utf-8'))
+
+if podrozdzial:
+    podrozdzial.close()
\ No newline at end of file
diff --git a/production.yaml b/production.yaml
new file mode 100644 (file)
index 0000000..5fce6ee
--- /dev/null
@@ -0,0 +1,11 @@
+extends: site.yaml
+base_url: /.kurs
+media_url: /.kurs/media
+deploy_root: deploy_production
+publisher:
+    default:
+        type: hyde.ext.publishers.ssh.SSH
+        username: prawokultury
+        server: giewont.icm.edu.pl
+        target: /srv/prawokultury/static_pages/kurs
+        opts: -r -v --delete
index 4244301..14e28a1 100644 (file)
--- a/site.yaml
+++ b/site.yaml
@@ -1,7 +1,6 @@
-base_url: /
 context:
     data:
-        domain: https://przyszlosc.prawokultury.pl
+        domain: https://prawokultury.pl
 plugins:
     - hyde.ext.plugins.meta.MetaPlugin
     - hyde.ext.plugins.meta.AutoExtendPlugin
@@ -27,29 +26,54 @@ flattener:
           target: ""
         - source: texts/outro
           target: ""
+        - source: import/rozdzial-1
+          target: ""
+        - source: import/rozdzial-2
+          target: ""
+        - source: import/rozdzial-3
+          target: ""
+        - source: import/rozdzial-4
+          target: ""
+        - source: import/rozdzial-5
+          target: ""
+        - source: import/rozdzial-6
+          target: ""
 gzipper:
     extensions:
         - html
         - css
         - js
 sorter:
-    by_order:
+    order:
+        attr:
+            - meta.order
+        filters:
+            source.kind: html
+            meta.listable: true
+    global_order:
         attr:
+            - meta.section
             - meta.order
         filters:
             source.kind: html
             meta.listable: true
 grouper:
     section:
-        sorter: by_order
+        sorter: order
         groups:
             - name: intro
+              title: Wstęp
+            - name: rozdzial-1
+              title: "Rozdział 1"
+            - name: rozdzial-2
+              title: "Rozdział 2"
+            - name: rozdzial-3
+              title: "Rozdział 3"
+            - name: rozdzial-4
+              title: "Rozdział 4"
+            - name: rozdzial-5
+              title: "Rozdział 5"
+            - name: rozdzial-6
+              title: "Rozdział 6"
             - name: main
             - name: outro
-publisher:
-    default:
-        type: hyde.ext.publishers.ssh.SSH
-        username: prawokultury
-        server: giewont.icm.edu.pl
-        target: /srv/przyszlosc/www/
-        opts: -r -v --delete