pyfedi/docs/post teaser structure diagram.svg

221 lines
456 KiB
XML
Raw Normal View History

2024-12-08 12:52:57 -08:00
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
2024-12-08 12:54:47 -08:00
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
2024-12-08 12:52:57 -08:00
width="210mm"
height="297mm"
viewBox="0 0 210 297"
version="1.1"
2024-12-08 12:54:47 -08:00
id="svg8"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
sodipodi:docname="post teaser structure diagram.svg">
2024-12-08 12:52:57 -08:00
<defs
id="defs2" />
2024-12-08 12:54:47 -08:00
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
2024-12-08 21:34:51 -08:00
inkscape:zoom="0.7"
inkscape:cx="584.20019"
inkscape:cy="555.95078"
2024-12-08 12:54:47 -08:00
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1003"
inkscape:window-x="1920"
inkscape:window-y="40"
inkscape:window-maximized="1" />
2024-12-08 12:52:57 -08:00
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
2024-12-08 21:34:51 -08:00
<dc:title />
2024-12-08 12:52:57 -08:00
</cc:Work>
</rdf:RDF>
</metadata>
<g
2024-12-08 12:54:47 -08:00
inkscape:label="Layer 1"
inkscape:groupmode="layer"
2024-12-08 12:52:57 -08:00
id="layer1">
<image
width="152.25383"
height="71.679642"
preserveAspectRatio="none"
2024-12-08 21:34:51 -08:00
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2kAAAGbCAYAAABeTdidAAAABHNCSVQICAgIfAhkiAAAIABJREFU eJzs3XecFfW9//HXd2ZOL9s7LMvSe1UsWMAGIpZoNFWjyY3eaGJ+phtjbrwxucabxNyYqDHFWGON BQV7AaQjVUBggV12Yfvu2dPPmfn+/thdpAsGhcv9PB+PfezuOTPf+U45+5j3fr4zo7TWmv3ofVlr vcfX7q/tb3ohDkRrjeM4pNNpYrEYbreb5uZmbrnlFmzbPqQ27rnnHkzTxOv14na7MQzjE+61EEII IYQQ+1JK7fN772u9P+/92iG3faCQBnsGtYN93/tnIQ5Ea41t2ySTSWKxGOFwmG3btvHb3/6W1tbW j5z/8ccfJxKJ4Pf7cbvdh3WwCyGEEEIIcaTsfh66dxA70PdDbvtgIQ0OHsz2nkaIQ+E4DtlslmQy STQaxefzkZ+fTyKR2GO6YDC4z7xaa1paWggGg1iWJSFNCCGEEEIcNfs7F/1XAxpISBNHieM4ZDIZ UqkUiUSCVCoFsM/Q2l69pWKv10sgEMDr9WKapoQ0IYQQQghx1ByVkCbDHcUnpTeI2bZNJpMhm81i 2/au42h/B7NhGFiWhcvlwrIsuR5NCCGEEEIcNZ/kcEfrQG/s78Yh7UlFa8IglpHqhTgytNZox+n+ zsGDvqLnwkulJKAJIYQQQohjTsClKfA55HmdPQKa1vpfv3HI/gJafZcikTUpC0GO9withRA9DqcS K0MchRBCCCHEsagzCTu6wGfZVIT0x77D4z4hbe+A5jgO7UlFW9JiaNERXgshhBBCCCGEOM6sb4Z8 b5Y8r8YwjMMOagccM7Z7SGtNGJSFjlynhRBCCCGEEOJ4VRaC1oSB03tZz2Hev2OPkLa/KprjOMSz hgxxFEIIIYQQQohDkOOFeNbYlad2D2qHEtj2W0nb/Vo0x3GObI+FEEIIIYQQ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lh2xIY71q7WfOZ2h763Oky9V/OjVzXr0nsGL+VTXD4Ssj1DHu1GzQs7oXw0nHHg ++n/y8yCIZx6xiQG5pi7AtrC4qu5/5nn+Md/nkHsie9w/d9rDut6JacrQpQccsP7iZbKz4gpUxlc GCa/38mcN6mIplVr2LlX2Nm+fBnN1VO5+OQBlBZXMn7GVAbH1rJmO7j9fjymwnQHCHgtspuXsiIx ivNmTqBfSQnVJ13AaX2aWLO2BTu6nlU1JqPOvYCJ1RVUjjiLaRMLDhJ6DUrHncao8jwK+p/CpIEm zY0tOE4La1bWE5o4g2lj+lHRfzwzzh6+190xDcpPPJtJA8ooznFTv3w5TWWncdEZgykvqWT8jGmM VutZsrarZyipJrr+eR6c1czQy7/M1L77Gbep8jnxqpv5zudPpMJvYoXzCKl2mtvsXcvMn3AWp/bP J1w4iClnj8W7dRXrOnpSmmsgp507kpJwDhXjp3F6VRerV27bc38aIXLC0BXp+heGuAohhBBCCPHJ OyLjvpxOzbcf0szNU/zhJsWFfSBgwPZ3HMZu33PaMyYqypdonlsFU7KadRq+PlHh23/TR1RvQFtU +lX+dP+3mJSj4NI7eMj4EVf+eA46eBiN2TY2Joa5v5AWIifcm38VodwwKt5FTEP+rok0XZ0R0uue 5LYfPbnbvC5GRfeu9WiSkQip6CYe+MnS3RdEuLgLJxYlRpiqfGvX67n5uQdJ4Aq327UrxJmmiU7b aB2lq0uRV1RAb63LzC8i16jbY16Xq3deTVckillQSE7vwqwCinKhtjcMOY0serkR5e7HhPwD3GBF J6h99wVmzVtHsx2koMhHXENgV5pShHM+rFga4VxCahPRWPcEyp
2024-12-08 12:52:57 -08:00
id="image843"
x="30.893024"
y="41.526779" />
<rect
style="fill:none;stroke:#ff0000;stroke-width:0.571;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect847"
width="141.79601"
height="8.7792559"
x="33.457554"
y="103.96085" />
<rect
style="fill:none;stroke:#ff0000;stroke-width:0.571;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect847-6"
width="141.79601"
height="8.7792559"
x="33.461224"
y="43.537758" />
<rect
style="fill:none;stroke:#0000ff;stroke-width:0.5111;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect847-3-7"
width="152.25383"
height="74.862282"
x="30.893024"
y="41.526779" />
<rect
style="fill:none;stroke:#338c47;stroke-width:0.5111;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect847-3-7-5"
width="161.45963"
height="82.95771"
x="27.00012"
y="37.778717" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#338c47;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="156.82547"
y="36.418491"
id="text911"><tspan
2024-12-08 12:54:47 -08:00
sodipodi:role="line"
2024-12-08 12:52:57 -08:00
id="tspan909"
x="156.82547"
y="36.418491"
2024-12-08 21:34:51 -08:00
style="font-size:4.23333px;fill:#338c47;fill-opacity:1;stroke-width:0.264583">post/_post_teaser.html</tspan></text>
2024-12-08 12:52:57 -08:00
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#0500ff;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="148.74895"
y="41.23349"
id="text911-3"><tspan
2024-12-08 12:54:47 -08:00
sodipodi:role="line"
2024-12-08 12:52:57 -08:00
id="tspan909-5"
x="148.74895"
y="41.23349"
2024-12-08 21:34:51 -08:00
style="font-size:4.23333px;fill:#0500ff;fill-opacity:1;stroke-width:0.264583">post/post_teaser/_image.html</tspan></text>
2024-12-08 12:52:57 -08:00
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#0500ff;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="115.32379"
y="48.891998"
id="text911-3-6"><tspan
2024-12-08 12:54:47 -08:00
sodipodi:role="line"
2024-12-08 12:52:57 -08:00
id="tspan909-5-2"
x="115.32379"
y="48.891998"
2024-12-08 21:34:51 -08:00
style="font-size:4.23333px;fill:#ff0000;fill-opacity:1;stroke-width:0.264583">post/post_teaser/_title.html</tspan></text>
2024-12-08 12:52:57 -08:00
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#0500ff;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="106.20049"
y="109.41472"
id="text911-3-6-2"><tspan
2024-12-08 12:54:47 -08:00
sodipodi:role="line"
2024-12-08 12:52:57 -08:00
id="tspan909-5-2-7"
x="106.20049"
y="109.41472"
2024-12-08 21:34:51 -08:00
style="font-size:4.23333px;fill:#ff0000;fill-opacity:1;stroke-width:0.264583">post/post_teaser/_utilities_bar.html</tspan></text>
2024-12-08 12:52:57 -08:00
<rect
style="fill:none;stroke:#ff8a00;stroke-width:0.442;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect847-0"
width="16.54863"
height="7.243958"
x="41.122543"
y="104.74948" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;fill:#ff8a00;fill-opacity:1;stroke:none;stroke-width:0.265;stroke-miterlimit:4;stroke-dasharray:none"
x="37.881706"
y="129.06961"
id="text911-3-6-2-9"><tspan
2024-12-08 12:54:47 -08:00
sodipodi:role="line"
2024-12-08 12:52:57 -08:00
id="tspan909-5-2-7-3"
x="37.881706"
y="129.06961"
style="font-size:4.23333px;fill:#ff8a00;fill-opacity:1;stroke-width:0.265;stroke-miterlimit:4;stroke-dasharray:none">post/_post_voting_buttons.html</tspan></text>
<g
id="g1018"
style="stroke:#ff8a00;stroke-opacity:1"
transform="matrix(0.68200447,0,0,0.68200447,-9.7886873,22.285543)">
<g
id="g1022"
transform="rotate(-106.22422,94.583156,141.29185)"
style="stroke:#ff8a00;stroke-opacity:1">
<path
style="fill:none;stroke:#ff8a00;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 81.555115,141.92177 c 0.674855,-0.0516 1.355088,0.048 2.030069,0 0.48914,-0.0348 0.971449,-0.14269 1.460846,-0.17369 2.560609,-0.16219 5.106104,0.063 7.672155,-0.16756 2.12008,-0.19048 4.230682,-0.58266 6.36044,-0.67226 1.306035,-0.055 2.614385,0 3.921575,0 0.29941,0 1.39716,0.0943 1.92834,0 0.39067,0.0399 0.66554,0.0919 1.02322,0.0814 0.62044,-0.0182 0.57196,0.0313 1.25502,-0.0165"
2024-12-08 12:54:47 -08:00
id="path1012"
sodipodi:nodetypes="cssscscsc" />
2024-12-08 12:52:57 -08:00
<path
style="fill:none;stroke:#ff8a00;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 101.26941,139.09969 c 0.68717,0.37994 1.58214,0.25918 2.29283,0.49799 0.19278,0.0648 0.3646,0.21105 0.52955,0.26557 0.33294,0.11004 0.71266,0.14892 1.06399,0.26555 0.36848,0.12231 0.79016,0.42976 1.19606,0.53123 0.12964,0.0324 0.27125,-0.0324 0.4009,0 0.31237,0.0781 0.44399,0.26727 0.72879,0.26727 0.0434,0 -0.10924,-0.038 -0.13021,0 -0.0885,0.1604 -0.21971,0.25065 -0.39754,0.39291 -0.6329,0.2849 -1.64626,0.65321 -2.44466,1.03474 -0.22538,0.11269 -0.51776,0.26729 -0.71453,0.4247 -0.51842,0.26201 -0.97102,0.34223 -1.24311,0.49296 -0.12837,0.0856 -0.8133,0.2352 -0.87489,0.20236 -0.15762,-0.084 0.10577,-1.46101 0.10577,-1.59561 0,-0.20726 -0.0408,-1.86994 -0.20262,-2.01692 -0.14653,-0.13307 -0.14506,-0.65382 -0.31032,-0.76275 z"
2024-12-08 12:54:47 -08:00
id="path1014"
sodipodi:nodetypes="ssssscsscccccssss" />
2024-12-08 12:52:57 -08:00
</g>
</g>
2024-12-08 21:34:51 -08:00
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:0;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
x="27.430307"
y="154.67404"
id="text860"><tspan
sodipodi:role="line"
id="tspan858"
x="27.430307"
y="154.67404"
style="font-size:4.23333px;line-height:1.25;stroke-width:0.264583">All paths are relative to /app/templates. Post teasers are typically shown in </tspan><tspan
sodipodi:role="line"
x="27.430307"
y="159.9657"
style="font-size:4.23333px;line-height:1.25;stroke-width:0.264583"
id="tspan862">a list, like this:</tspan><tspan
sodipodi:role="line"
x="27.430307"
y="165.25737"
style="font-size:4.23333px;line-height:1.25;stroke-width:0.264583"
id="tspan874" /><tspan
sodipodi:role="line"
x="27.430307"
y="170.33736"
style="font-size:4.23333px;line-height:1.15;stroke-width:0.264583"
id="tspan864">{% for post in posts.items -%}</tspan><tspan
sodipodi:role="line"
x="27.430307"
y="175.20569"
style="font-size:4.23333px;line-height:1.15;stroke-width:0.264583"
id="tspan866"> {% include 'post/_post_teaser.html' -%}</tspan><tspan
sodipodi:role="line"
x="27.430307"
y="180.07402"
style="font-size:4.23333px;line-height:1.15;stroke-width:0.264583"
id="tspan868">{% else -%}</tspan><tspan
sodipodi:role="line"
x="27.430307"
y="184.94235"
style="font-size:4.23333px;line-height:1.15;stroke-width:0.264583"
id="tspan870"> &lt;p&gt;{{ _('No posts in this community yet.') }}&lt;/p&gt;</tspan><tspan
sodipodi:role="line"
x="27.430307"
y="189.81068"
style="font-size:4.23333px;line-height:1.15;stroke-width:0.264583"
id="tspan872">{% endfor -%}</tspan></text>
2024-12-08 12:52:57 -08:00
</g>
</svg>