Register

Wie modifiziere ich das -Tag in Django -Vorlagen bedingt?</h1> <p> Python. Programmiererforum </p> <p class="skiplink"><a href="#start_here">Skip to content</a></p> </div> </div> </div> <div class="navbar" role="navigation"> <div class="inner"> <ul id="nav-main" class="nav-main linklist" role="menubar"> <li id="quick-links" class="quick-links dropdown-container responsive-menu" data-skip-responsive="true"> <a href="#" class="dropdown-trigger"> <i class="icon fa-bars fa-fw" aria-hidden="true"></i><span>Quick links</span> </a> <div class="dropdown"> <div class="pointer"><div class="pointer-inner"></div></div> <ul class="dropdown-contents" role="menu"> <li class="separator"></li> <li> <a href="./search.php?search_id=unanswered" role="menuitem"> <i class="icon fa-file-o fa-fw icon-gray" aria-hidden="true"></i><span>Unanswered topics</span> </a> </li> <li> <a href="./search.php?search_id=active_topics" role="menuitem"> <i class="icon fa-file-o fa-fw icon-blue" aria-hidden="true"></i><span>Active topics</span> </a> </li> <li class="separator"></li> <li> <a href="./search.php" role="menuitem"> <i class="icon fa-search fa-fw" aria-hidden="true"></i><span>Search</span> </a> </li> <li class="separator"></li> <a href="./viewtopic.php?t=13849&ver=mobi" title="Mobile version"><img style="vertical-align: middle;" src="https://prg.forums.wiki/ext/bb3mobi/MobileDevices/mobile.gif" alt="Mobile version" /> Mobile version</a> <li> <a href="/thankslist?tslash=" role="menuitem"> <i class="icon fa-thumbs-o-up fa-fw" aria-hidden="true"></i><span>Thanks list</span> </a> </li> </ul> </div> </li>   <li data-skip-responsive="true"> ⛳ <a href="/search.php?search_id=active_topics">Active Topics</a> ⤇ </li> <li data-skip-responsive="true"> <ul id="vertical-ticker"> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 09:20 <a href="./viewtopic.php?t=27026" title="Was ist der Unterschied zwischen XPath () und findall ()?"><span style="color: #0040FF">Was ist der Unterschied zwischen XPath () und findall ()?</span></a> <a href="./viewtopic.php?p=27041#p27041" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 09:18 <a href="./viewtopic.php?t=26996" title="Serialver -Tool in OpenJDK 21 funktioniert nicht für verschachtelte Klassen"><span style="color: #0040FF">Serialver -Tool in OpenJDK 21 funktioniert nicht für verschachtelte Klassen</span></a> <a href="./viewtopic.php?p=27011#p27011" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 09:17 <a href="./viewtopic.php?t=26995" title="VordergrundservicedIdnotStartintimeException bei Verwendung startforecroundService () mit Fusedlocation API"><span style="color: #0040FF">VordergrundservicedIdnotStartintimeException bei Verwendung startforecroundService () mit Fusedlocation API</span></a> <a href="./viewtopic.php?p=27010#p27010" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 09:17 <a href="./viewtopic.php?t=27028" title="Ich habe die NetLink -API in Docker nicht ausgeführt"><span style="color: #0040FF">Ich habe die NetLink -API in Docker nicht ausgeführt</span></a> <a href="./viewtopic.php?p=27043#p27043" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 09:16 <a href="./viewtopic.php?t=26994" title="Mdc.clear () in der Abhängigkeit, die nicht mit Interceptor funktioniert"><span style="color: #0040FF">Mdc.clear () in der Abhängigkeit, die nicht mit Interceptor funktioniert</span></a> <a href="./viewtopic.php?p=27009#p27009" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 09:09 <a href="./viewtopic.php?t=27025" title="So entfernen Sie den Abschnitt "Parameter" aus der Sphinx -Autoklassausgabe"><span style="color: #0040FF">So entfernen Sie den Abschnitt "Parameter" aus der Sphinx -Autoklassausgabe</span></a> <a href="./viewtopic.php?p=27040#p27040" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 09:06 <a href="./viewtopic.php?t=27024" title="Wie führe ich Audio -Subtraktion in Python durch?"><span style="color: #0040FF">Wie führe ich Audio -Subtraktion in Python durch?</span></a> <a href="./viewtopic.php?p=27039#p27039" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 09:05 <a href="./viewtopic.php?t=27023" title="Wie zeichne ich eine Linie auf einem Bild in OpenCV?"><span style="color: #0040FF">Wie zeichne ich eine Linie auf einem Bild in OpenCV?</span></a> <a href="./viewtopic.php?p=27038#p27038" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 09:04 <a href="./viewtopic.php?t=26993" title="Java.lang.classcastexception: Kann nicht auf org.openqa.selenium.webelement mit executescript () übertragen werden, um S"><span style="color: #0040FF">Java.lang.classcastexception: Kann nicht auf org.openqa.selenium.webelement mit executescript () übertragen werden, um S</span></a> <a href="./viewtopic.php?p=27008#p27008" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:57 <a href="./viewtopic.php?t=27022" title="Bitte sagen Sie mir, wie Sie den Ausgabefehler lösen, wenn Sie Sprachanrufe über die Python AIortc -Kommunikation implem"><span style="color: #0040FF">Bitte sagen Sie mir, wie Sie den Ausgabefehler lösen, wenn Sie Sprachanrufe über die Python AIortc -Kommunikation implem</span></a> <a href="./viewtopic.php?p=27037#p27037" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:47 <a href="./viewtopic.php?t=26992" title="Lassen Sie Java Framework.jar anstelle von Android.jar in einem Android Gradle -Modul verwenden, wenn beide auf dem Boot"><span style="color: #0040FF">Lassen Sie Java Framework.jar anstelle von Android.jar in einem Android Gradle -Modul verwenden, wenn beide auf dem Boot</span></a> <a href="./viewtopic.php?p=27007#p27007" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:44 <a href="./viewtopic.php?t=27021" title="Lösung, um die Logik in Django nicht zu teilen, um N+1 -Abfragen zu lösen"><span style="color: #0040FF">Lösung, um die Logik in Django nicht zu teilen, um N+1 -Abfragen zu lösen</span></a> <a href="./viewtopic.php?p=27036#p27036" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:42 <a href="./viewtopic.php?t=27020" title="Erstellen eines Taschenrechners Python"><span style="color: #0040FF">Erstellen eines Taschenrechners Python</span></a> <a href="./viewtopic.php?p=27035#p27035" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:37 <a href="./viewtopic.php?t=26991" title="ECLIPSE-Testng Referenzen nicht existierendes Projekt XXX, Startkonfiguration"><span style="color: #0040FF">ECLIPSE-Testng Referenzen nicht existierendes Projekt XXX, Startkonfiguration</span></a> <a href="./viewtopic.php?p=27006#p27006" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:34 <a href="./viewtopic.php?t=27019" title="Warum erhalte ich diese Fehler "Warnung: Ignorieren Sie die ungültige Verteilung -yproj", während Sie ein Python -Modul "><span style="color: #0040FF">Warum erhalte ich diese Fehler "Warnung: Ignorieren Sie die ungültige Verteilung -yproj", während Sie ein Python -Modul </span></a> <a href="./viewtopic.php?p=27034#p27034" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:33 <a href="./viewtopic.php?t=27018" title="Wenn Anweisung in der Django -Vorlage nicht funktioniert"><span style="color: #0040FF">Wenn Anweisung in der Django -Vorlage nicht funktioniert</span></a> <a href="./viewtopic.php?p=27033#p27033" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:32 <a href="./viewtopic.php?t=27017" title="Header/Fußzeile aus PDF extrahieren (programmatisch) [geschlossen]"><span style="color: #0040FF">Header/Fußzeile aus PDF extrahieren (programmatisch) [geschlossen]</span></a> <a href="./viewtopic.php?p=27032#p27032" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:32 <a href="./viewtopic.php?t=27016" title="Wie kann man verhindern, dass Snakemake Linien ohne Variablen in Multilin-F-Stringen abgestreift?"><span style="color: #0040FF">Wie kann man verhindern, dass Snakemake Linien ohne Variablen in Multilin-F-Stringen abgestreift?</span></a> <a href="./viewtopic.php?p=27031#p27031" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:29 <a href="./viewtopic.php?t=27015" title="Wie erstelle ich virtuelle Env mit Python 3?"><span style="color: #0040FF">Wie erstelle ich virtuelle Env mit Python 3?</span></a> <a href="./viewtopic.php?p=27030#p27030" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> <li>by <a style="color: #;" href="./memberlist.php?mode=viewprofile&u=1"> Anonymous</a> <i class="fa fa-clock-o"></i> 17 Jul 2025, 08:24 <a href="./viewtopic.php?t=27014" title="Miniozugriff bei Verwendung von API (Python) verweigert"><span style="color: #0040FF">Miniozugriff bei Verwendung von API (Python) verweigert</span></a> <a href="./viewtopic.php?p=27029#p27029" title="View the latest post"><i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">View the latest post</span></a></li> </ul> </li> <li class="rightside" data-skip-responsive="true"> <a href="./ucp.php?mode=login&redirect=viewtopic.php%3Ft%3D13849" title="Login" accesskey="x" role="menuitem"> <i class="icon fa-power-off fa-fw" aria-hidden="true"></i><span>Login</span> </a> </li> <li class="rightside" data-skip-responsive="true"> <a href="./fwpduyhv" role="menuitem"> <i class="icon fa-pencil-square-o fa-fw" aria-hidden="true"></i><span><mark style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">R</mark><big style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">e</big><samp style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">g</samp><span style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">i</span><mark style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">s</mark><s style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">t</s><u style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">e</u><s style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">r</s></span> </a> </li> </ul> <ul id="nav-breadcrumbs" class="nav-breadcrumbs linklist navlinks" role="menubar"> <li class="breadcrumbs" itemscope itemtype="https://schema.org/BreadcrumbList"> <span class="crumb" itemtype="https://schema.org/ListItem" itemprop="itemListElement" itemscope><a itemprop="item" href="https://prg.forums.wiki/index.php" data-navbar-reference="home"><i class="icon fa-home fa-fw" aria-hidden="true"></i><span itemprop="name">Forum</span></a><meta itemprop="position" content="1" /></span> <span class="crumb" itemtype="https://schema.org/ListItem" itemprop="itemListElement" itemscope><a itemprop="item" href="./" accesskey="h" data-navbar-reference="index"><span itemprop="name">Board index</span></a><meta itemprop="position" content="2" /></span> <span class="crumb" itemtype="https://schema.org/ListItem" itemprop="itemListElement" itemscope data-forum-id="6"><a itemprop="item" href="./viewforum.php?f=6"><span itemprop="name">Programmierung</span></a><meta itemprop="position" content="3" /></span> <span class="crumb" itemtype="https://schema.org/ListItem" itemprop="itemListElement" itemscope data-forum-id="14"><a itemprop="item" href="./viewforum.php?f=14"><span itemprop="name">Python</span></a><meta itemprop="position" content="4" /></span> <span class="crumb"><a href="./viewtopic.php?t=13849" itemprop="url"><span itemprop="title">Wie modifiziere ich das <title> -Tag in Django -Vorlagen bedingt?</span></a></span> </li> <li id="search-box" class="search-box rightside responsive-hide"> <form action="./search.php" method="get" id="search"> <fieldset> <input name="keywords" id="keyword" type="search" maxlength="128" title="Search for keywords" class="inputbox search tiny" size="20" value="" placeholder="Search…" > <button class="button button-search" type="submit" title="Search"> <i class="icon fa-search fa-fw" aria-hidden="true"></i><span class="sr-only">Search</span> </button> <a href="./search.php" class="button button-search-end" title="Advanced search"> <i class="icon fa-cog fa-fw" aria-hidden="true"></i><span class="sr-only">Advanced search</span> </a> </fieldset> </form> </li> <li class="rightside responsive-search"> <a href="./search.php" title="View the advanced search options" role="menuitem"> <i class="icon fa-search fa-fw" aria-hidden="true"></i><span class="sr-only">Search</span> </a> </li> </ul> </div> </div> </div> <a id="start_here" class="anchor"></a> <div id="page-body" class="page-body" role="main"> <h2 class="topic-title"><a href="./viewtopic.php?t=13849">Wie modifiziere ich das <title> -Tag in Django -Vorlagen bedingt?</a> ⇐ <font size = "2"><a href="./viewforum.php?f=14">Python</a> </font></h2> <!-- NOTE: remove the style="display: none" when you want to have the forum description on the topic body --> <div style="display: none !important;">Python-Programme<br /></div> <div class="action-bar bar-top"> <a href="./viewtopic.php?mode=postreply" class="button" title="Post a reply" aria-hidden="true" tabindex="-1" rel="nofollow" style="position: absolute; overflow: hidden; z-index: -10; width: 1px; height: 1px; padding: 0; margin: 0; border: none;"> <span>Post Reply</span> <i class="icon fa-fw" aria-hidden="true"></i> </a> <a href="./posting.php?mode=reply&t=13849" class="button" title=""> <span><u style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">P</u><s style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">o</s><mark style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">s</mark><samp style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">t</samp><samp style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;"> </samp><i style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">R</i><samp style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">e</samp><i style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">p</i><mark style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">l</mark><i style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">y</i></span> <i class="icon fa-reply fa-fw" aria-hidden="true"></i> </a> <a href="./viewtopic.php?t=13849&view=previous" class="button" title="Previous topic">Previous topic</a><a href="./viewtopic.php?t=13849&view=next" class="button" title="Next topic">Next topic</a> <div class="dropdown-container dropdown-button-control topic-tools"> <span title="Topic tools" class="button button-secondary dropdown-trigger dropdown-select"> <i class="icon fa-wrench fa-fw" aria-hidden="true"></i> <span class="caret"><i class="icon fa-sort-down fa-fw" aria-hidden="true"></i></span> </span> <div class="dropdown"> <div class="pointer"><div class="pointer-inner"></div></div> <ul class="dropdown-contents"> <li> <a href="./memberlist.php?mode=email&t=13849" title="Email topic"> <i class="icon fa-envelope-o fa-fw" aria-hidden="true"></i><span>Email topic</span> </a> </li> <li> <a href="./viewtopic.php?t=13849&view=print" title="Print view" accesskey="p"> <i class="icon fa-print fa-fw" aria-hidden="true"></i><span>Print view</span> </a> </li> </ul> </div> </div> <div class="search-box" role="search"> <form method="get" id="topic-search" action="./search.php"> <fieldset> <input class="inputbox search tiny" type="search" name="keywords" id="search_keywords" size="20" placeholder="Search this topic…" /> <button class="button button-search" type="submit" title="Search"> <i class="icon fa-search fa-fw" aria-hidden="true"></i><span class="sr-only">Search</span> </button> <a href="./search.php" class="button button-search-end" title="Advanced search"> <i class="icon fa-cog fa-fw" aria-hidden="true"></i><span class="sr-only">Advanced search</span> </a> <input type="hidden" name="t" value="13849" /> <input type="hidden" name="sf" value="msgonly" /> </fieldset> </form> </div> <div class="pagination"> 1 post • Page <strong>1</strong> of <strong>1</strong> </div> </div> <div id="qr_posts"> <div class="post-container"> <div id="p13862" class="post has-profile bg2"> <div class="inner"> <dl class="postprofile" id="profile13862"> <dt class="no-profile-rank no-avatar"> <div class="avatar-container"> </div> <strong><span class="username">Anonymous</span></strong> </dt> </dl> <div class="postbody"> <div id="post_content13862">  <a href="#p13862">Wie modifiziere ich das <title> -Tag in Django -Vorlagen bedingt?</a> <ul class="post-buttons"> <li> <a href="/post/13862/report" title="Report this post" class="button button-icon-only"> <i class="icon fa-exclamation fa-fw" aria-hidden="true"></i><span class="sr-only">Report</span> </a> </li> <li> <a href="./posting.php?mode=quote&p=13862" title="Reply with quote" class="button button-icon-only"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i><span class="sr-only">Quote</span> </a> </li> </ul> <p class="author"> <a class="unread" href="./viewtopic.php?p=13862#p13862" title="Post"> <i class="icon fa-file fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only">Post</span> </a> <span class="responsive-hide">by <strong><span class="username">Anonymous</span></strong> » </span><time datetime="2025-02-17T04:55:59+00:00">17 Feb 2025, 05:55</time> </p> <div class="content">Ich habe eine Basisvorlage (<div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>main.html</code></pre></div>) mit dem folgenden Code für das Tag: <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>main.html:</code></pre></div> <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>{% block title %}{% endblock %} | Application < /code> in einer untergeordneten Vorlage (dashboard.html</code></pre></div>), ich überschreibe den Titelblock so wie folgt: <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>dashboard.html:</code></pre></div> <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>{% extends 'main.html' %} {% block title %}Dashboard{% endblock %} </code></pre></div> Wenn der Titel in der untergeordneten Vorlage nicht überschrieben ist, möchte ich, dass der Titel nur die Anwendung sein soll, ohne dass zusätzlich | Anwendung . Wie kann ich überprüfen, ob der Block überschrieben ist, und den Titel entsprechend ändern?<div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>{% extends 'main.html' %} {% block title %}Dashboard{% endblock %} </code></pre></div> Dann muss ich den Titel als "Dashboard | Application" . <br> Wenn ich den Titelblock nicht übergeben: < /p> <div class="codebox"><p>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><pre><code>{% extends 'main.html' %} </code></pre></div> Dann sollte der Titel nur "application" .</div> <div id='list_thanks13862'> </div> <div id='div_post_reput13862'> </div> </div> </div> <div class="back2top"> <a href="#top" class="top" title="Top"> <i class="icon fa-chevron-circle-up fa-fw icon-gray" aria-hidden="true"></i> <span class="sr-only">Top</span> </a> </div> </div> </div> <pre id="qr_time13862" style="display: none;">1739768159</pre> <pre id="qr_author_p13862" style="display: none;" data-id="1">Anonymous</pre> <pre id="decoded_p13862" style="display: none;">Ich habe eine Basisvorlage ([code]main.html[/code]) mit dem folgenden Code für das Tag: <br />[code]main.html:[/code] <br />[code]{% block title %}{% endblock %} | Application<br />< /code><br />in einer untergeordneten Vorlage (dashboard.html[/code]), ich überschreibe den Titelblock so wie folgt: <br />[code]dashboard.html:[/code] <br />[code]{% extends 'main.html' %}<br />{% block title %}Dashboard{% endblock %}<br />[/code]<br />Wenn der Titel in der untergeordneten Vorlage nicht überschrieben ist, möchte ich, dass der Titel nur die Anwendung sein soll, ohne dass zusätzlich | Anwendung . Wie kann ich überprüfen, ob der Block überschrieben ist, und den Titel entsprechend ändern?[code]{% extends 'main.html' %}<br />{% block title %}Dashboard{% endblock %}<br />[/code]<br />Dann muss ich den Titel als "Dashboard | Application" . <br />Wenn ich den Titelblock nicht übergeben: < /p><br />[code]{% extends 'main.html' %}<br />[/code]<br />Dann sollte der Titel nur "application" .</pre> </div></div> <div id="qr_temp_container" style="display: none;"></div> <div class="action-bar bar-bottom"> <a href="./viewtopic.php?mode=postreply" class="button" title="Post a reply" aria-hidden="true" tabindex="-1" rel="nofollow" style="position: absolute; overflow: hidden; z-index: -10; width: 1px; height: 1px; padding: 0; margin: 0; border: none;"> <span>Post Reply</span> <i class="icon fa-fw" aria-hidden="true"></i> </a> <a href="./posting.php?mode=reply&t=13849" class="button" title=""> <span><u style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">P</u><s style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">o</s><mark style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">s</mark><samp style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">t</samp><samp style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;"> </samp><i style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">R</i><samp style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">e</samp><i style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">p</i><mark style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">l</mark><i style="font: inherit; text-decoration: inherit; color: inherit; background: none; padding: 0; margin: 0; display: inline;">y</i></span> <i class="icon fa-reply fa-fw" aria-hidden="true"></i> </a> <a href="./viewtopic.php?t=13849&view=previous" class="button" title="Previous topic">Previous topic</a><a href="./viewtopic.php?t=13849&view=next" class="button" title="Next topic">Next topic</a> <div class="dropdown-container dropdown-button-control topic-tools"> <span title="Topic tools" class="button button-secondary dropdown-trigger dropdown-select"> <i class="icon fa-wrench fa-fw" aria-hidden="true"></i> <span class="caret"><i class="icon fa-sort-down fa-fw" aria-hidden="true"></i></span> </span> <div class="dropdown"> <div class="pointer"><div class="pointer-inner"></div></div> <ul class="dropdown-contents"> <li> <a href="./memberlist.php?mode=email&t=13849" title="Email topic"> <i class="icon fa-envelope-o fa-fw" aria-hidden="true"></i><span>Email topic</span> </a> </li> <li> <a href="./viewtopic.php?t=13849&view=print" title="Print view" accesskey="p"> <i class="icon fa-print fa-fw" aria-hidden="true"></i><span>Print view</span> </a> </li> </ul> </div> </div> <div class="pagination"> 1 post • Page <strong>1</strong> of <strong>1</strong> </div> </div> <form method="post" action="./posting.php?mode=reply&f=14&t=13849" id="qr_postform"> <div class="panel"> <div class="inner"> <h2 class="quickreply-title">Quick Reply</h2> <fieldset class="fields1"> <dl style="clear: left;"> <dt><label for="subject">Subject:</label></dt> <dd><input type="text" name="subject" id="subject" size="45" maxlength="124" tabindex="2" value="Wie modifiziere ich das <title> -Tag in Django -Vorlagen bedingt?" class="inputbox autowidth" /></dd> </dl> <input type="hidden" name="subject" value="Wie modifiziere ich das <title> -Tag in Django -Vorlagen bedingt?" /> <dl style="clear: left;"> <dt><label for="username">Username:</label></dt> <dd><input type="text" tabindex="1" name="username" id="username" size="25" value="" class="inputbox autowidth" /></dd> </dl> <script> var form_name = 'qr_postform'; var text_name = 'message'; var load_draft = false; var upload = false; // Define the bbCode tags var bbcode = new Array(); var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]', '[H2]', '[/H2]', '[H3]', '[/H3]', '[H4]', '[/H4]', '[center]', '[/center]', '[hsimg]', '[/hsimg]', '[s]', '[/s]', '[spoiler]', '[/spoiler]', '[textarea]', '[/textarea]'); var imageTag = false; function change_palette() { phpbb.toggleDisplay('colour_palette'); e = document.getElementById('colour_palette'); if (e.style.display == 'block') { document.getElementById('bbpalette').value = 'Hide font colour'; } else { document.getElementById('bbpalette').value = 'Font colour'; } } function qr_formatToggle(s) { var t = '', sc = s.length, c; for (i = 0; i < sc; i++) { c = s.charAt(i); if (c.toLowerCase() == c) c = c.toUpperCase(); else if (c.toUpperCase() == c) c = c.toLowerCase(); t += c; } return t; } // param: reg = 0 - lowercase, reg = 1 - uppercase, reg = 2 - inverse function qr_updateCase(reg) { var buf = '', selection = null, start, end; var txtarea = document.forms[form_name].elements[text_name]; if (document.selection) { selection = document.selection.createRange(); buf = selection.text; } else if (typeof (txtarea.selectionStart) == "number") { start = txtarea.selectionStart; end = txtarea.selectionEnd; if (start != end) buf = txtarea.value.substr(start, end - start); else buf = txtarea.value; } else { buf = txtarea.value; } switch (parseInt(reg)) { case 0: buf = buf.toLowerCase(); break; case 1: buf = buf.toUpperCase(); break; case 2: buf = qr_formatToggle(buf); break; } if (selection) { selection.text = buf; } else if (start != end) { txtarea.value = txtarea.value.substr(0, start) + buf + txtarea.value.substr(end); } else { txtarea.value = buf; } txtarea.focus(); } </script> <div id="colour_palette" style="display: none;"> <dl style="clear: left;"> <dt><label>Font colour:</label></dt> <dd id="color_palette_placeholder" class="color_palette_placeholder" data-color-palette="h" data-height="12" data-width="15" data-bbcode="true"></dd> </dl> </div> <div id="format-buttons" class="format-buttons"> <button type="button" class="button button-icon-only bbcode-b" accesskey="b" name="addbbcode0" value=" B " onclick="bbstyle(0)" title="Bold text: [b]text[/b]"> <i class="icon fa-bold fa-fw" aria-hidden="true"></i> </button> <button type="button" class="button button-icon-only bbcode-i" accesskey="i" name="addbbcode2" value=" i " onclick="bbstyle(2)" title="Italic text: [i]text[/i]"> <i class="icon fa-italic fa-fw" aria-hidden="true"></i> </button> <button type="button" class="button button-icon-only bbcode-u" accesskey="u" name="addbbcode4" value=" u " onclick="bbstyle(4)" title="Underline text: [u]text[/u]"> <i class="icon fa-underline fa-fw" aria-hidden="true"></i> </button> <button type="button" class="button button-icon-only bbcode-quote" accesskey="q" name="addbbcode6" value="Quote" onclick="bbstyle(6)" title="Quote text: [quote]text[/quote]"> <i class="icon fa-quote-left fa-fw" aria-hidden="true"></i> </button> <button type="button" class="button button-icon-only bbcode-code" accesskey="c" name="addbbcode8" value="Code" onclick="bbstyle(8)" title="Code display: [code]code[/code]"> <i class="icon fa-code fa-fw" aria-hidden="true"></i> </button> <button type="button" class="button button-icon-only bbcode-list" accesskey="l" name="addbbcode10" value="List" onclick="bbstyle(10)" title="List: [list][*]text[/list]"> <i class="icon fa-list fa-fw" aria-hidden="true"></i> </button> <button type="button" class="button button-icon-only bbcode-list-" accesskey="o" name="addbbcode12" value="List=" onclick="bbstyle(12)" title="Ordered list: e.g. [list=1][*]First point[/list] or [list=a][*]Point a[/list]"> <i class="icon fa-list-ol fa-fw" aria-hidden="true"></i> </button> <button type="button" class="button button-icon-only bbcode-asterisk" accesskey="y" name="addlistitem" value="[*]" onclick="bbstyle(-1)" title="List item: [*]text"> <i class="icon fa-asterisk fa-fw" aria-hidden="true"></i> </button> <button type="button" class="button button-icon-only bbcode-img" accesskey="p" name="addbbcode14" value="Img" onclick="bbstyle(14)" title="Insert image: [img]http://image_url[/img]"> <i class="icon fa-image fa-fw" aria-hidden="true"></i> </button> <button type="button" class="button button-icon-only bbcode-url" accesskey="w" name="addbbcode16" value="URL" onclick="bbstyle(16)" title="Insert URL: [url]http://url[/url] or [url=http://url]URL text[/url]"> <i class="icon fa-link fa-fw" aria-hidden="true"></i> </button> <button type="button" class="button button-icon-only bbcode-color" name="bbpalette" id="bbpalette" value="Font colour" onclick="change_palette();" title="Font colour: [color=red]text[/color] or [color=#FF0000]text[/color]"> <i class="icon fa-tint fa-fw" aria-hidden="true"></i> </button> <select name="addbbcode20" class="bbcode-size" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="Font size: [size=85]small text[/size]"> <option value="50">Tiny</option> <option value="85">Small</option> <option value="100" selected="selected">Normal</option> <option value="150">Large</option> <option value="200">Huge</option> </select> <button type="button" class="button button-secondary bbcode-H2" name="addbbcode22" value="H2" onclick="bbstyle(22)" title="Заголовок второго уровня: [h2]текст[/h2]"> H2 </button> <button type="button" class="button button-secondary bbcode-H3" name="addbbcode24" value="H3" onclick="bbstyle(24)" title="Заголовок третьего уровня: [h3]текст[/h3]"> H3 </button> <button type="button" class="button button-secondary bbcode-H4" name="addbbcode26" value="H4" onclick="bbstyle(26)" title="Заголовок четвёртого уровня: [h4]текст[/h4]"> H4 </button> <button type="button" class="button button-secondary bbcode-center" name="addbbcode28" value="center" onclick="bbstyle(28)" title="По центру: [center]текст[/center]"> center </button> <button type="button" class="button button-secondary bbcode-hsimg" name="addbbcode30" value="hsimg" onclick="bbstyle(30)" title="Для уменьшения внешних картинок. Размещайте ссылку на картинку в этом тэге: [hsimg]ССЫЛКА[/hsimg]"> hsimg </button> <button type="button" class="button button-secondary bbcode-s" name="addbbcode32" value="s" onclick="bbstyle(32)" title="Зачёркнутый текст: [s]текст[/s]"> s </button> <button type="button" class="button button-secondary bbcode-spoiler" name="addbbcode34" value="spoiler" onclick="bbstyle(34)" title="Скрытый текст: [spoiler=заголовок]текст[/spoiler]"> spoiler </button> <button type="button" class="button button-secondary bbcode-textarea" name="addbbcode36" value="textarea" onclick="bbstyle(36)" title="Текст в рамочке: [textarea]Текст[/textarea]"> textarea </button> </div> <div id="register-and-translit"> <abbr style="border-bottom:1px dashed #777; cursor:help;" title="Press a button to change the case of the selected text">Change Text Case:</abbr>  <input type="button" class="button button-secondary" accesskey="t" name="uppercase" value="▲ ABC" onclick="qr_updateCase(1)" title="UPPER CASE" /> <input type="button" class="button button-secondary" accesskey="t" name="lowercase" value="▼ abc" onclick="qr_updateCase(0)" title="lower case" /> <input type="button" class="button button-secondary" accesskey="t" name="inverscase" value="▼▲ aBC" onclick="qr_updateCase(2)" title="iNVERT cASE" /> </div> <div id="smiley-box" class="smiley-box"> <strong>Smilies</strong><br /> <a href="#" onclick="insert_text(':)', true); return false;"><img src="./images/smilies/smile.gif" width="20" height="24" alt=":)" title="Smile" /></a> <a href="#" onclick="insert_text(':(', true); return false;"><img src="./images/smilies/sad.gif" width="20" height="24" alt=":(" title="Sad" /></a> <a href="#" onclick="insert_text(':oops:', true); return false;"><img src="./images/smilies/blush.gif" width="25" height="25" alt=":oops:" title="Embarassed" /></a> <a href="#" onclick="insert_text(':chelo:', true); return false;"><img src="./images/smilies/chelobiting.gif" width="35" height="30" alt=":chelo:" title="Thanks" /></a> <a href="#" onclick="insert_text(':roll:', true); return false;"><img src="./images/smilies/rolleyes.gif" width="20" height="20" alt=":roll:" title="Rolling Eyes" /></a> <a href="#" onclick="insert_text(':wink:', true); return false;"><img src="./images/smilies/wink.gif" width="20" height="20" alt=":wink:" title="Wink" /></a> <a href="#" onclick="insert_text(':muza:', true); return false;"><img src="./images/smilies/smile34.gif" width="48" height="55" alt=":muza:" title="Muza" /></a> <a href="#" onclick="insert_text(':sorry:', true); return false;"><img src="./images/smilies/sorry.gif" width="24" height="22" alt=":sorry:" title="Sorry" /></a> <a href="#" onclick="insert_text(':angel:', true); return false;"><img src="./images/smilies/angel.gif" width="27" height="23" alt=":angel:" title="Angel" /></a> <a href="#" onclick="insert_text(':read:', true); return false;"><img src="./images/smilies/smile235.gif" width="35" height="45" alt=":read:" title="Read" /></a> <a href="#" onclick="insert_text('*x)', true); return false;"><img src="./images/smilies/facepalmm.gif" width="19" height="19" alt="*x)" title="facepalm" /></a> <a href="#" onclick="insert_text(':clever:', true); return false;"><img src="./images/smilies/clever.gif" width="25" height="22" alt=":clever:" title="Clever" /></a> <br /><a href="./posting.php?mode=smilies&f=14" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">View more smilies</a> </div> <div id="message-box" class="message-box"> <textarea style="height: 9em;" name="message" rows="7" cols="76" tabindex="3" class="inputbox"></textarea> </div> </fieldset> <fieldset class="submit-buttons"> <input type="hidden" name="creation_time" value="1752979857" /> <input type="hidden" name="form_token" value="9163e0e77e607db775f36d97e9b2cc8505c9d7b94ru297b6zkb6nhq0" /> <input type="hidden" name="topic_cur_post_id" value="13862" /> <input type="hidden" name="lastclick" value="1752979857" /> <input type="hidden" name="topic_id" value="13849" /> <input type="hidden" name="forum_id" value="14" /> <input type="hidden" name="lastclick" value="1752979857" /> <input type="submit" accesskey="f" tabindex="6" name="preview" value="Full Editor & Preview" class="button2" id="qr_full_editor" />  <input type="submit" accesskey="s" tabindex="7" name="post" value="Submit" class="button1" />  </fieldset> </div> </div> </form> <div id="qr_message" style="display: none;"></div> <script> var quickreply = {}; // External plugins compatible with QuickReply. quickreply.plugins = { abbc3: false, liveSearch: false, reCAPTCHA2: false, seo: false, qrBoardUrl: 'https://prg.forums.wiki/' }; // Configuration settings for QuickReply. quickreply.settings = { ajaxPagination: false, ajaxSubmit: false, allowBBCode: true, allowedGuest: true, attachBox: false, colouredNick: true, ctrlEnterNotice: true, enableBBCode: true, enableComma: true, enableScroll: true, enableWarning: true, fixEmptyForm: true, formType: 0, fullQuote: true, fullQuoteAllowed: false, hideSubjectBox: true, lastQuote: true, pluploadEnabled: false, quickNick: true, quickNickString: false, quickNickUserType: false, quickNickRef: true, quickNickPM: true, quickQuote: true, quickQuoteButton: true, saveReply: true, scrollInterval: 0, softScroll: false, unchangedSubject: true}; // Useful variables for QuickReply. quickreply.editor = { attachPanel: '#attach-panel', currentPost: '', mainForm: '#qr_postform', messageStorage: '#qr_message', postSelector: 'div.post', postTitleSelector: '.postbody div h3:first', profileLinkSelector: 'a.username, a.username-coloured', profileNoLinkSelector: 'span.username, span.username-coloured', tempContainer: '#qr_temp_container', textareaSelector: '#qr_postform #message-box textarea', unreadPostSelector: '.unreadpost', viewtopicLink: './viewtopic.php?t=13849' }; // Global functions for QuickReply. quickreply.functions = { /** * Converts RGB function to the hex string. * * @param color Color in RGB function format * @returns */ getHexColor: function(color) { color = color.replace(/\s/g, ""); var colorRGB = color.match(/^rgb\((\d{1,3}[%]?),(\d{1,3}[%]?),(\d{1,3}[%]?)\)$/i), colorHEX = ''; for (var i = 1; i <= 3; i++) { colorHEX += Math.round((colorRGB[i][colorRGB[i].length - 1] === "%" ? 2.55 : 1) * parseInt(colorRGB[i])).toString(16).replace(/^(.)$/, '0$1'); } return "#" + colorHEX; }, /** * Generates an HTML string for a link from an object with parameters. * * @param parameters Object with HTML attributes * (href, id, className, title) and link text * @returns */ makeLink: function(parameters) { if (typeof parameters !== 'object') { return ''; } var link = '<a'; link += (parameters.href) ? ' href="' + parameters.href + '"' : ' href="#"'; if (parameters.id) { link += ' id="' + parameters.id + '"'; } if (parameters.className) { link += ' class="' + parameters.className + '"'; } if (parameters.title) { link += ' title="' + parameters.title + '"'; } link += '>' + ((parameters.text) ? parameters.text : '') + '</a>'; return link; } }; // Language variables for QuickReply. quickreply.language = { AJAX_ERROR: 'Something went wrong when processing your request.', AJAX_ERROR_TITLE: 'AJAX error', BUTTON_QUOTE: 'Quote', CANCEL_SUBMISSION: 'Cancel submission', CTRL_ENTER: 'You may also submit your reply by simultaneous pressing Ctrl and Enter keys on your keyboard.', ERROR: 'Error', FULLSCREEN: 'Fullscreen editor', FULLSCREEN_EXIT: 'Exit fullscreen mode', INFORMATION: 'Information', INSERT_TEXT: 'Insert quote in the Quick Reply form', loading: { text: 'Loading', ATTACHMENTS: 'Waiting for the finish of attachments uploading...', NEW_FORM_TOKEN: 'The form token was outdated and has been updated.<br />Submitting the form again...', NEW_POSTS: 'At least one new post has been added to the topic.<br />Your reply has not been submitted because you will probably want to update it.<br />Fetching new posts...', PREVIEW: 'Fetching the preview...', SUBMITTED: 'Your post has been submitted successfully.<br />Fetching the result...', SUBMITTING: 'Submitting your reply...', WAIT: 'Waiting for server response...' }, NO_FULL_QUOTE: 'Please select a part of the message to be able to quote it.', POST_REVIEW: 'At least one new post has been made to this topic. You may wish to review your post in light of this.', PREVIEW_CLOSE: 'Close preview block', PROFILE: 'Go to profile', QUICKNICK: 'Refer by username', QUICKNICK_TITLE: 'Insert username in the Quick Reply form', QUICKQUOTE_TEXT: 'Quick quote', QUICKQUOTE_TITLE: 'Reply with quick quote', QUICKREPLY: 'Quick Reply', REPLY_IN_PM: 'Reply in PM', REPLY_WITH_QUOTE: 'Reply with quote', TYPE_REPLY: 'Type your reply here...', WARN_BEFORE_UNLOAD: 'Your entered reply has not been submitted and may be lost!', WROTE: 'wrote' }; // Special features for QuickReply - settings. quickreply.special = { hideSubject: true}; // Special features for QuickReply - functions. quickreply.special.functions = {}; </script> <div class="forumbg"> <div class="inner"> <ul class="topiclist"> <li class="header"> <dl class="row-item"> <dt><div class="list-inner">Similar Topics</div></dt> <dd class="posts">Replies</dd> <dd class="views">Views</dd> <dd class="lastpost"><span>Last post</span></dd> </dl> </li> </ul> <ul class="topiclist topics"> <li class="row bg11"> <dl class="row-item topic_read"> <dt title="There are no new unread posts for this topic."> <div class="list-inner"> <a href="./viewtopic.php?t=15424" class="topictitle">Interpretieren von C ++ - Argumenten für variadische Vorlagen aus anderen Argumenten für variadische Vorlagen</a> <br /> <div class="responsive-show" style="display: none;"> Last post by <span class="username">Anonymous</span> « <a href="./viewtopic.php?t=15424&p=15438#p15438" title="Go to last post"><time datetime="2025-02-25T10:06:48+00:00">25 Feb 2025, 11:06</time></a> <br />Posted in <a href="./viewforum.php?f=19">C++</a> </div> <div class="responsive-hide left-box"> by <span class="username">Anonymous</span> » <time datetime="2025-02-25T10:06:48+00:00">25 Feb 2025, 11:06</time> » in <a href="./viewforum.php?f=19">C++</a> </div> <div class="topic_preview_content" style="display:none;"> <div class="topic_preview_avatar"><div class="topic_preview_no_avatar"></div></div> <div class="topic_preview_first">Ich würde mich freuen, wenn jemand in der Lage ist, mir eine bessere Terminologie für die Frage zu versorgen, da ich Schwierigkeiten habe, sie in den Titel in Worte zu fassen. Im Wesentlichen ist...</div> </div> </div> </dt> <dd class="posts">0 <dfn>Replies</dfn></dd> <dd class="views">25 <dfn>Views</dfn></dd> <dd class="lastpost"> <span><dfn>Last post </dfn>by <span class="username">Anonymous</span> <a href="./viewtopic.php?t=15424&p=15438#p15438" title="Go to last post"> <i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only"></span> </a> <br /><time datetime="2025-02-25T10:06:48+00:00">25 Feb 2025, 11:06</time> </span> </dd> </dl> </li> <li class="row bg22"> <dl class="row-item topic_read"> <dt title="There are no new unread posts for this topic."> <div class="list-inner"> <a href="./viewtopic.php?t=2623" class="topictitle">Wie kann ich in Django das Template-Tag dazu bringen, jeden Tag das aktuelle Datum zu laden?</a> <br /> <div class="responsive-show" style="display: none;"> Last post by <span class="username">Guest</span> « <a href="./viewtopic.php?t=2623&p=2636#p2636" title="Go to last post"><time datetime="2025-01-03T11:58:06+00:00">03 Jan 2025, 12:58</time></a> <br />Posted in <a href="./viewforum.php?f=14">Python</a> </div> <div class="responsive-hide left-box"> by <span class="username">Guest</span> » <time datetime="2025-01-03T11:58:06+00:00">03 Jan 2025, 12:58</time> » in <a href="./viewforum.php?f=14">Python</a> </div> <div class="topic_preview_content" style="display:none;"> <div class="topic_preview_avatar"><div class="topic_preview_no_avatar"></div></div> <div class="topic_preview_first">Ich habe auf der Indexseite von Django ein Dashboard erstellt, das mithilfe des Vorlagen-Tag-Codes ausgibt. Dieses Vorlagen-Tag enthält Code wie:<br /> <br /> start = timezone.now().date()<br /> end =...</div> </div> </div> </dt> <dd class="posts">0 <dfn>Replies</dfn></dd> <dd class="views">33 <dfn>Views</dfn></dd> <dd class="lastpost"> <span><dfn>Last post </dfn>by <span class="username">Guest</span> <a href="./viewtopic.php?t=2623&p=2636#p2636" title="Go to last post"> <i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only"></span> </a> <br /><time datetime="2025-01-03T11:58:06+00:00">03 Jan 2025, 12:58</time> </span> </dd> </dl> </li> <li class="row bg11"> <dl class="row-item topic_read"> <dt title="There are no new unread posts for this topic."> <div class="list-inner"> <a href="./viewtopic.php?t=11883" class="topictitle">Wie modifiziere ich Dateien im User Home DIR über Cloud-Init?</a> <br /> <div class="responsive-show" style="display: none;"> Last post by <span class="username">Anonymous</span> « <a href="./viewtopic.php?t=11883&p=11896#p11896" title="Go to last post"><time datetime="2025-02-11T19:25:32+00:00">11 Feb 2025, 20:25</time></a> <br />Posted in <a href="./viewforum.php?f=22">Linux</a> </div> <div class="responsive-hide left-box"> by <span class="username">Anonymous</span> » <time datetime="2025-02-11T19:25:32+00:00">11 Feb 2025, 20:25</time> » in <a href="./viewforum.php?f=22">Linux</a> </div> <div class="topic_preview_content" style="display:none;"> <div class="topic_preview_avatar"><div class="topic_preview_no_avatar"></div></div> <div class="topic_preview_first">Ich möchte eine linux -virtuelle Maschine über Cloud init bereitstellen. Ich möchte das Benutzer -Home -Verzeichnis vorbereiten, so dass ein anfänglicher Satz von Tools verfügbar ist. Im Idealfall...</div> </div> </div> </dt> <dd class="posts">0 <dfn>Replies</dfn></dd> <dd class="views">12 <dfn>Views</dfn></dd> <dd class="lastpost"> <span><dfn>Last post </dfn>by <span class="username">Anonymous</span> <a href="./viewtopic.php?t=11883&p=11896#p11896" title="Go to last post"> <i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only"></span> </a> <br /><time datetime="2025-02-11T19:25:32+00:00">11 Feb 2025, 20:25</time> </span> </dd> </dl> </li> <li class="row bg22"> <dl class="row-item topic_read"> <dt title="There are no new unread posts for this topic."> <div class="list-inner"> <a href="./viewtopic.php?t=13365" class="topictitle">Wie modifiziere ich den Inhalt von Gutenberg -Blockinhalten dynamisch auf der Grundlage der Benutzerrolle in WordPress?</a> <br /> <div class="responsive-show" style="display: none;"> Last post by <span class="username">Anonymous</span> « <a href="./viewtopic.php?t=13365&p=13378#p13378" title="Go to last post"><time datetime="2025-02-15T10:42:56+00:00">15 Feb 2025, 11:42</time></a> <br />Posted in <a href="./viewforum.php?f=15">Php</a> </div> <div class="responsive-hide left-box"> by <span class="username">Anonymous</span> » <time datetime="2025-02-15T10:42:56+00:00">15 Feb 2025, 11:42</time> » in <a href="./viewforum.php?f=15">Php</a> </div> <div class="topic_preview_content" style="display:none;"> <div class="topic_preview_avatar"><div class="topic_preview_no_avatar"></div></div> <div class="topic_preview_first">Ich muss den Inhalt spezifischer Gutenberg-Blöcke dynamisch auf der Rolle des protokollierten Benutzers (Administrator, Editor, Abonnenten) ändern, ohne Themendateien zu ändern. Register_Block_type...</div> </div> </div> </dt> <dd class="posts">0 <dfn>Replies</dfn></dd> <dd class="views">15 <dfn>Views</dfn></dd> <dd class="lastpost"> <span><dfn>Last post </dfn>by <span class="username">Anonymous</span> <a href="./viewtopic.php?t=13365&p=13378#p13378" title="Go to last post"> <i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only"></span> </a> <br /><time datetime="2025-02-15T10:42:56+00:00">15 Feb 2025, 11:42</time> </span> </dd> </dl> </li> <li class="row bg11"> <dl class="row-item topic_read"> <dt title="There are no new unread posts for this topic."> <div class="list-inner"> <a href="./viewtopic.php?t=18242" class="topictitle">Wie modifiziere ich die Anzahl der Neuronen einer bestimmten Schicht in einem neuronalen Tensorflow -Netzwerk leicht?</a> <br /> <div class="responsive-show" style="display: none;"> Last post by <span class="username">Anonymous</span> « <a href="./viewtopic.php?t=18242&p=18256#p18256" title="Go to last post"><time datetime="2025-03-12T12:32:36+00:00">12 Mar 2025, 13:32</time></a> <br />Posted in <a href="./viewforum.php?f=14">Python</a> </div> <div class="responsive-hide left-box"> by <span class="username">Anonymous</span> » <time datetime="2025-03-12T12:32:36+00:00">12 Mar 2025, 13:32</time> » in <a href="./viewforum.php?f=14">Python</a> </div> <div class="topic_preview_content" style="display:none;"> <div class="topic_preview_avatar"><div class="topic_preview_no_avatar"></div></div> <div class="topic_preview_first">in Tensorflow, mit einem Modell h = modell (input_layer, prototion_layer)</div> </div> </div> </dt> <dd class="posts">0 <dfn>Replies</dfn></dd> <dd class="views">11 <dfn>Views</dfn></dd> <dd class="lastpost"> <span><dfn>Last post </dfn>by <span class="username">Anonymous</span> <a href="./viewtopic.php?t=18242&p=18256#p18256" title="Go to last post"> <i class="icon fa-external-link-square fa-fw icon-lightgray icon-md" aria-hidden="true"></i><span class="sr-only"></span> </a> <br /><time datetime="2025-03-12T12:32:36+00:00">12 Mar 2025, 13:32</time> </span> </dd> </dl> </li> </ul> </div> </div> <div class="action-bar actions-jump"> <p class="jumpbox-return"> <a href="./viewforum.php?f=14" class="left-box arrow-left" accesskey="r"> <i class="icon fa-angle-left fa-fw icon-black" aria-hidden="true"></i><span>Return to “Python”</span> </a> </p> <div class="jumpbox dropdown-container dropdown-container-right dropdown-up dropdown-left dropdown-button-control" id="jumpbox"> <span title="Jump to" class="button button-secondary dropdown-trigger dropdown-select"> <span>Jump to</span> <span class="caret"><i class="icon fa-sort-down fa-fw" aria-hidden="true"></i></span> </span> <div class="dropdown"> <div class="pointer"><div class="pointer-inner"></div></div> <ul class="dropdown-contents"> <li><a href="./viewforum.php?f=6" class="jumpbox-cat-link"> <span> Programmierung</span></a></li> <li><a href="./viewforum.php?f=9" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   Java</span></a></li> <li><a href="./viewforum.php?f=10" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   C#</span></a></li> <li><a href="./viewforum.php?f=13" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   Elasticsearch-Aggregation</span></a></li> <li><a href="./viewforum.php?f=14" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   Python</span></a></li> <li><a href="./viewforum.php?f=15" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   Php</span></a></li> <li><a href="./viewforum.php?f=16" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   Android</span></a></li> <li><a href="./viewforum.php?f=17" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   HTML</span></a></li> <li><a href="./viewforum.php?f=18" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   Jquery</span></a></li> <li><a href="./viewforum.php?f=19" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   C++</span></a></li> <li><a href="./viewforum.php?f=20" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   IOS</span></a></li> <li><a href="./viewforum.php?f=21" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   CSS</span></a></li> <li><a href="./viewforum.php?f=22" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   Linux</span></a></li> <li><a href="./viewforum.php?f=23" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   Apache</span></a></li> <li><a href="./viewforum.php?f=24" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   MySql</span></a></li> <li><a href="./viewforum.php?f=25" class="jumpbox-sub-link"><span class="spacer"></span> <span>↳   JavaScript</span></a></li> </ul> </div> </div> </div> </div> <div id="page-footer" class="page-footer" role="contentinfo"> <div class="navbar" role="navigation"> <div class="inner"> <ul id="nav-footer" class="nav-footer linklist" role="menubar"> <li class="breadcrumbs"> <span class="crumb"><a href="https://prg.forums.wiki/index.php" data-navbar-reference="home"><i class="icon fa-home fa-fw" aria-hidden="true"></i><span>Forum</span></a></span> <span class="crumb"><a href="./" data-navbar-reference="index"><span>Board index</span></a></span> </li> <li class="rightside"> <a href="./viewtopic.php?t=13849&ver=mobi" title="Mobile version"><img style="vertical-align: middle;" src="https://prg.forums.wiki/ext/bb3mobi/MobileDevices/mobile.gif" alt="Mobile version" /></a></li> <li class="rightside">All times are <span title="Europe/Berlin">UTC+02:00</span></li> <li class="rightside"> <a href="./ucp.php?mode=delete_cookies" data-ajax="true" data-refresh="true" role="menuitem"> <i class="icon fa-trash fa-fw" aria-hidden="true"></i><span>Delete cookies</span> </a> </li> </ul> </div> </div> <div class="copyright"> <p class="footer-row"> <span class="footer-copyright">Powered by <a rel="nofollow" href="https://www.phpbb.com/">phpBB</a>® Forum Software © phpBB Limited</span> <hr> <br /> <p class="footer-row"> <span class="footer-info"><span title="SQL time: 1.684s / PHP time: 0.043s">Time: 1.726s</span> | Peak Memory Usage: 2.91 MiB | GZIP: On</span> </p> </div> <div id="darkenwrapper" class="darkenwrapper" data-ajax-error-title="AJAX error" data-ajax-error-text="Something went wrong when processing your request." data-ajax-error-text-abort="User aborted request." data-ajax-error-text-timeout="Your request timed out; please try again." data-ajax-error-text-parsererror="Something went wrong with the request and the server returned an invalid reply."> <div id="darken" class="darken"> </div> </div> <div id="phpbb_alert" class="phpbb_alert" data-l-err="Error" data-l-timeout-processing-req="Request timed out."> <a href="#" class="alert_close"> <i class="icon fa-times-circle fa-fw" aria-hidden="true"></i> </a> <h3 class="alert_title"> </h3><p class="alert_text"></p> </div> <div id="phpbb_confirm" class="phpbb_alert"> <a href="#" class="alert_close"> <i class="icon fa-times-circle fa-fw" aria-hidden="true"></i> </a> <div class="alert_text"></div> </div> </div> </div> <div> <a id="bottom" class="anchor" accesskey="z"></a> <img src="/cron/cron.task.core.tidy_search" width="1" height="1" alt="cron" /></div> <script src="./assets/javascript/jquery-3.6.0.min.js?assets_version=152"></script> <script src="./assets/javascript/core.js?assets_version=152"></script> <script type="text/javascript" > var LA_CLEAR_LIST_THANKS = "Clear Thanks List"; var LA_REPUT = "Rating"; var LA_RECEIVED = "Been thanked"; var LA_GIVEN = "Has thanked"; var LA_CLEAR_LIST_THANKS_CONFIRM = "Do you really want to clear the user`s Thanks List?"; var LA_YES = "Yes"; var LA_NO = "No"; var U_ADDONFORTHANKSFORPOSTS_PATH = '/addonforthanksforposts/'; var forum_id = parseInt('14'); var topic_id = parseInt('13849'); </script> <script type="text/javascript" src="https://prg.forums.wiki/ext/bb3mobi/highslide/highslide-with-gallery.min.js?assets_version=152"></script> <script type="text/javascript"> // Language strings hs.lang = { cssDirection: 'ltr', loadingText : 'Loading...', loadingTitle : 'Click to cancel', focusTitle : 'Click to bring to front', fullExpandTitle : 'Expand to actual size (f)', previousText : 'Previous', nextText : 'Next', moveText : 'Move', closeText : 'Close', closeTitle : 'Close (esc)', resizeTitle : 'Resize', playText : 'Play', playTitle : 'Play slideshow (spacebar)', pauseText : 'Pause', pauseTitle : 'Pause slideshow (spacebar)', previousTitle : 'Previous (arrow left)', nextTitle : 'Next (arrow right)', moveTitle : 'Move', fullExpandText : '1:1', number: 'Image %1 of %2', restoreTitle : 'Click to close image, click and drag to move. Use arrow keys for next and previous.' }; hs.graphicsDir = 'https://prg.forums.wiki/ext/bb3mobi/highslide/graphics/'; hs.align = 'center'; hs.transitions = ['expand', 'crossfade']; hs.fadeInOut = true; hs.dimmingOpacity = 0.8; hs.outlineType = 'rounded-white'; hs.captionEval = 'this.thumb.title'; // This value needs to be set to false, to solve the issue with the highly increasing view counts. hs.continuePreloading = false; hs.marginLeft = 85; hs.marginBottom = 0; hs.marginTop = 0; hs.numberPosition = 'caption'; // Add the slideshow providing the controlbar and the thumbstrip hs.addSlideshow({ interval: 5000, repeat: false, useControls: true, fixedControls: 'fit', overlayOptions: { opacity: .6, position: 'top center', hideOnMouseOut: true }, }); function add_highslide(e, elements) { var scr_w = $(document).width(); var scr_h = $(document).height(); if (scr_w > 800 && scr_h > 600) { ;(function ($) { $.fn.bindImageLoad = function (callback) { function isImageLoaded(img) { if (!img.complete) { return false; } if (typeof img.naturalWidth !== "undefined" && img.naturalWidth === 0) { return false; } return true; } return this.each(function () { var ele = $(this); if (ele.is("img") && $.isFunction(callback)) { ele.one("load", callback); if (isImageLoaded(this)) { ele.trigger("load"); } } }); }; })(jQuery); elements.find("dl.thumbnail a").addClass("highslide").attr("onclick", "return hs.expand(this)"); // BBCode [img]highslide[/img] elements.find('.postimage').not('a.highslide .postimage').bindImageLoad(function () { $(this).removeAttr("width") $(this).removeAttr("height") $(this).css({ width: "", height: "" }); var h = $(this).height(); var w = $(this).width(); var size = 420; // Img tag max width if (h > 200) // Highslide > min height { var i = $(this).attr("src"); $(this).wrap('<a class="highslide" href="' +i+ '" onclick="return hs.expand(this)"></a>'); } if (w > size || h > size) { if (w > h) { h = h*(size/w); w = size; } else { w = w*(size/h); h = size; } $(this).width(w); $(this).height(h); } }); } else { elements.find("dl.thumbnail a").attr("target", "_blank"); } } $(document).ready(function (e) { add_highslide(e, $(document)); }); $('#qr_posts').on('qr_completed', add_highslide); $('#qr_postform').on('ajax_submit_preview', function (e) { add_highslide(e, $('#preview')); }); $('#recent_topics').on('recent_topics_success', add_highslide); </script> <script type="text/javascript"> $(document).ready(function() { /* Add resize attach in phpBB3.1 && Anvar bb3.mobi */ $('dl.thumbnail img, dt.attach-image img').load(function() { var w = $(this).width(); var h = $(this).height(); var rh = $(this).height(); if (w > h) { h = w; w = w*(h/rh); } $(this).width(w*(2/3)); $(this).height(h*(2/3)); }); $('dl.thumbnail img, dt.attach-image img').each(function() { var src = $(this).attr('src'); $(this).attr('src', ''); $(this).attr('src', src); }); }); // Inline Attachment $('.inline-attachment').each(function() { var $this = $(this); var isPrevHasClass = $this.prev().length && !$this.prev().hasClass('inline-attachment'); var isNextHasClass = $this.next().length && !$this.next().hasClass('inline-attachment'); var isPrevText = this.previousSibling && !!this.previousSibling.textContent.trim(); var isNextText = this.nextSibling && !!this.nextSibling.textContent.trim(); if (isPrevHasClass || isPrevText) { $this.before('<br />'); }; if (isNextHasClass || isNextText) { $this.after('<br />'); }; }); // Inline Attachment END </script> <script> $('document').ready(function() { $('.mark_read.icon-mark').click(function() { $('#notification_list_button > i').removeClass('fa-fw'); }); }); </script> <div style="text-align: center;"> <br /> <!--LiveInternet counter--><img id="licntD4AF" width="31" height="31" style="border:0" title="LiveInternet" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAEALAAAAAABAAEAAAIBTAA7" alt=""/><script>(function(d,s){d.getElementById("licntD4AF").src= "https://counter.yadro.ru/hit?t43.5;r"+escape(d.referrer)+ ((typeof(s)=="undefined")?"":";s"+s.width+"*"+s.height+"*"+ (s.colorDepth?s.colorDepth:s.pixelDepth))+";u"+escape(d.URL)+ ";h"+escape(d.title.substring(0,150))+";"+Math.random()}) (document,screen)</script><!--/LiveInternet--> </div> <script type="text/javascript"> // <![CDATA[ $( document ).ready(function () { $('#vertical-ticker').totemticker({ row_height : '10px', next : '#ticker-next', previous : '#ticker-previous', stop : '#stop', start : '#start', mousestop : true, direction : 'down' }); }); // ]]> </script> <script> function n4H7xYfFKi8lVqq9(){var a=document.getElementsByName('form_token');if(document.getElementById('uWgKUigev1RVxLON')==null){var b="4ru297b6zkb6nhq0"}else{var b=document.getElementById('uWgKUigev1RVxLON').value;document.getElementById('uWgKUigev1RVxLON').remove()}for(var i=0;i<a.length;i++){a[i].value=a[i].value.replace(b,'')}}n4H7xYfFKi8lVqq9();$('#qr_posts').on('qr_loaded',n4H7xYfFKi8lVqq9);$('#qr_postform').on('qr_outdated_form',n4H7xYfFKi8lVqq9);$('#qr_postform').on('qr_captcha_refreshed',n4H7xYfFKi8lVqq9); </script> <script type="text/javascript"> var source_link = '<p>© Source: <a href="' + location.href + '">' + location.href + '</a></p>'; jQuery( function($) { if (window.getSelection) $('body').bind( 'copy', function() { var selection = window.getSelection(); var range = selection.getRangeAt(0); var magic_div = $('<div>').css({ overflow : 'hidden', width: '1px', height : '1px', position : 'absolute', top: '-10000px', left : '-10000px' }); magic_div.append(range.cloneContents(), source_link); $('body').append(magic_div); var cloned_range = range.cloneRange(); selection.removeAllRanges(); var new_range = document.createRange(); new_range.selectNode(magic_div.get(0)); selection.addRange(new_range); window.setTimeout( function() { selection.removeAllRanges(); selection.addRange(cloned_range); magic_div.remove(); }, 0 ); } ); } ); </script> <script> jQuery(function() { jQuery('.topictitle').topicPreview({ dir: 'ltr', delay: 600, width: 360, drift: 15, position: {left: 35, top: 25}, noavatar: './styles/prosilver/theme/images/no_avatar.gif' }); }); </script> <script src="./ext/phpbb/collapsiblecategories/styles/all/template/js/collapsiblecategories.js?assets_version=152"></script> <script src="./assets/javascript/editor.js?assets_version=152"></script> <script src="./ext/boardtools/quickreply/styles/all/template/quickreply_style.js?assets_version=152"></script> <script src="./ext/boardtools/quickreply/styles/all/template/quickreply_core.js?assets_version=152"></script> <script src="./ext/boardtools/quickreply/styles/all/template/quickreply_plugins.js?assets_version=152"></script> <script src="./ext/boardtools/quickreply/styles/all/template/quickreply_special.js?assets_version=152"></script> <script src="./styles/prosilver/template/forum_fn.js?assets_version=152"></script> <script src="./styles/prosilver/template/ajax.js?assets_version=152"></script> <script src="./ext/alg/addonforthanksforposts/styles/prosilver/template/jquery.noty.js?assets_version=152"></script> <script src="./ext/alg/addonforthanksforposts/styles/prosilver/template/default.js?assets_version=152"></script> <script src="./ext/alg/addonforthanksforposts/styles/prosilver/template/topRight.js?assets_version=152"></script> <script src="./ext/alg/addonforthanksforposts/styles/prosilver/template/topCenter.js?assets_version=152"></script> <script src="./ext/alg/addonforthanksforposts/styles/prosilver/template/addon_for_thanks_for_posts.js?assets_version=152"></script> <script src="./ext/galandas/lasttopics/styles/all/template/jquery.totemticker.js?assets_version=152"></script> <script src="./ext/vse/topicpreview/styles/all/template/topicpreview.js?assets_version=152"></script> <script> var max_height = 200; var set_height = 150; var $elementsAll = $("div.content").find("blockquote"); var $levelOneElements = $elementsAll.not($elementsAll.children().find($elementsAll)); $levelOneElements.each(function(index) { var h=$(this).height(); if(h > max_height) { $(this).after('<div class="expand_quote">Click to expand ...</div>'); $(this).css({"max-height": set_height + "px"}); $(this).css({"overflow": "hidden"}); } }); $('.expand_quote').on('click',function(e){ var styles = { 'max-height': 'none', 'overflow': '' }; $(this).prev('blockquote').css(styles); $(this).remove(); }); </script> <script type="text/javascript"> // <![CDATA[ var pai_max_width = '120'; var pai_max_height = '180'; var pai_show_filename = 0; var pai_extensions = new RegExp(/\.(gif|png|jpeg|jpg|tif|tiff|tga|webp)$/i); var onclick_event = (typeof hs !== 'undefined') ? "return hs.expand(this);" : "window.open(this.href); return false;"; var data_lightbox = (typeof lightbox !== 'undefined') ? true : false; var data_hs = (typeof hs !== 'undefined') ? true : false; var pai_show_rotate = 0; (function($) { $.fn.nextElementInDom = function(selector, options) { var defaults = {stopAt : 'body'}; options = $.extend(defaults, options); var parent = $(this).parent(); var found = parent.find(selector); switch(true) { case (found.length > 0): return found; case (parent.length === 0 || parent.is(options.stopAt)): return $([]); default: return parent.nextElementInDom(selector); } }; })(jQuery); if (typeof phpbb.plupload !== 'undefined') { phpbb.plupload.updateRow = function(index, downloadUrl) { var attach = phpbb.plupload.data[index], row = $('[data-attach-id="' + attach.attach_id + '"]'); // Add the link to the file if (typeof downloadUrl !== 'undefined' && typeof downloadUrl[index] !== 'undefined') { var url = downloadUrl[index].replace('&', '&'), link = $('<a></a>'); if (attach.real_filename.match(pai_extensions)) { if (data_lightbox) { link.attr('data-lightbox', 'post-gallery'); } else { link.attr('onclick', onclick_event); } if (data_hs) { link.addClass('highslide'); } link.attr('href', url).html("<img src='" + url + "' style='max-width: " + pai_max_width + "px; max-height: " + pai_max_height + "px;' alt='" + attach.real_filename + "' />"); if (pai_show_filename) { row.find('.attach-controls').prepend("<div style='margin-bottom: 5px;'><a href='" + url + "' onclick='window.open(this.href); return false;'>" + attach.real_filename + "</a></div>"); } if (pai_show_rotate) { row.find('.attach-controls').append("<div style='margin-top: 5px;'><input class='button2' name='preview' value='Rotate to' id='rotate_file" + attach.attach_id + "' type='submit' onclick=\"document.getElementById('postform').action += '#preview';\" style='height: auto;' />  <input type='radio' name='rotate[" + attach.attach_id + "]' id='rotate_" + attach.attach_id + "_270' value='270' /> <label for='rotate_" + attach.attach_id + "_270'>90°</label>  <input type='radio' name='rotate[" + attach.attach_id + "]' id='rotate_" + attach.attach_id + "_180' value='180' /> <label for='rotate_" + attach.attach_id + "_180'>180°</label>  <input type='radio' name='rotate[" + attach.attach_id + "]' id='rotate_" + attach.attach_id + "_90' value='90' /> <label for='rotate_" + attach.attach_id + "_90'>270°</label></div>"); } } else { link.attr('href', url).html(attach.real_filename); } row.find('.file-name').html(link); } row.find('textarea').attr('rows', '3'); row.find('textarea').attr('name', 'comment_list[' + index + ']'); phpbb.plupload.updateHiddenData(row, attach, index); }; } $('a[href^="./download/file.php?mode=view&id="]').each(function() { var link = $(this); var url = $(this).attr('href'); var real_filename = this.innerHTML; var attach_id = url.split('id=')[1]; link.removeAttr("target"); if (real_filename.match(pai_extensions)) { if (data_lightbox) { link.attr('data-lightbox', 'post-gallery'); } else { link.attr('onclick', onclick_event); } if (data_hs) { link.addClass('highslide'); } link.attr('href', url).html("<img src='" + url + "' style='max-width: " + pai_max_width + "px; max-height: " + pai_max_height + "px;' alt='" + real_filename + "' />"); if (pai_show_filename) { link.nextElementInDom(".attach-controls").prepend("<div style='margin-bottom: 5px;'><a href='" + url + "' onclick='window.open(this.href); return false;'>" + real_filename + "</a></div>"); } if (pai_show_rotate) { link.nextElementInDom(".attach-controls").append("<div style='margin-top: 5px;'><input class='button2' name='preview' value='Rotate to' id='rotate_file" + attach_id + "' type='submit' onclick=\"document.getElementById('postform').action += '#preview';\" style='height: auto;' />  <input type='radio' name='rotate[" + attach_id + "]' id='rotate_" + attach_id + "_270' value='270' /> <label for='rotate_" + attach_id + "_270'>90°</label>  <input type='radio' name='rotate[" + attach_id + "]' id='rotate_" + attach_id + "_180' value='180' /> <label for='rotate_" + attach_id + "_180'>180°</label>  <input type='radio' name='rotate[" + attach_id + "]' id='rotate_" + attach_id + "_90' value='90' /> <label for='rotate_" + attach_id + "_90'>270°</label></div>"); } } else { link.attr('href', url).html(real_filename); } }); $('textarea[name^="comment_list"]').each(function() { $(this).attr('rows', '3'); }); // ]]> </script> </body> </html>