Links on lite design in full design are implemented

main
Inga 🏳‍🌈 14 years ago
parent 2d84092173
commit ec75f52e47
  1. 2
      Builder/IISMainHandler/build.txt
  2. 5
      IISMainHandler/handlers/AbstractGetHandler.cs
  3. BIN
      static/images/light-disabled.png
  4. BIN
      static/images/light.png
  5. 1
      templates/Full/Board.xslt
  6. 1
      templates/Full/BoardAsThread.xslt
  7. 1
      templates/Full/Boards.xslt
  8. 1
      templates/Full/Conversation.xslt
  9. 1
      templates/Full/Conversations.xslt
  10. 1
      templates/Full/Login.xslt
  11. 1
      templates/Full/MigrateAccount.xslt
  12. 1
      templates/Full/NewPoll.xslt
  13. 1
      templates/Full/NewThread.xslt
  14. 1
      templates/Full/PMReply.xslt
  15. 1
      templates/Full/PMReplyToPost.xslt
  16. 1
      templates/Full/PMSend.xslt
  17. 1
      templates/Full/Poll.xslt
  18. 1
      templates/Full/Post.xslt
  19. 1
      templates/Full/PostEdit.xslt
  20. 1
      templates/Full/PostPunish.xslt
  21. 1
      templates/Full/PostReply.xslt
  22. 1
      templates/Full/Thread.xslt
  23. 1
      templates/Full/UserInfo.xslt
  24. 33
      templates/Full/elems/Header.xslt

@ -16,6 +16,11 @@ namespace FLocal.IISHandler.handlers {
protected IEnumerable<XElement> getCommonData(WebContext context) {
return new XElement[] {
new XElement(
"url",
new XElement("host", context.httprequest.Url.Host),
new XElement("port", context.httprequest.Url.Port)
),
new XElement("handlerName", this.GetType().FullName),
new XElement("title", Config.instance.AppInfo),
new XElement("current", DateTime.Now.ToXml()),

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

@ -6,6 +6,7 @@
<xsl:template name="specificTitle">
<xsl:value-of select="currentLocation/board/name"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -5,6 +5,7 @@
<xsl:template name="specificTitle">
<xsl:value-of select="currentLocation/board/name"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -3,6 +3,7 @@
<xsl:import href="elems\Main.xslt"/>
<xsl:import href="elems\BoardInfo.xslt"/>
<xsl:template name="specificTitle">Đŕçäĺëű</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" class="tablesurround" cellspacing="1" cellpadding="1">
<tr>

@ -5,6 +5,7 @@
<xsl:template name="specificTitle">
<xsl:value-of select="conversationInfo/interlocutor/account/user/name"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<xsl:call-template name="conversationInfo"/>
<br />

@ -3,6 +3,7 @@
<xsl:import href="elems\Main.xslt"/>
<xsl:import href="elems\ConversationInfo.xslt"/>
<xsl:template name="specificTitle">Ëè÷íûå ñîîáùåíèÿ</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -2,6 +2,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="elems\Main.xslt"/>
<xsl:template name="specificTitle">Âõîä</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -2,6 +2,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="elems\Main.xslt"/>
<xsl:template name="specificTitle">Ìèãðàöèÿ</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -4,6 +4,7 @@
<xsl:template name="specificTitle">
<xsl:text>Íîâûé îïîðîñ</xsl:text>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -6,6 +6,7 @@
<xsl:text>Íîâàÿ òåìà - </xsl:text>
<xsl:value-of select="board/name"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -6,6 +6,7 @@
<xsl:text>Îòâåò íà ëè÷íîå ñîîáùåíèå - </xsl:text>
<xsl:value-of select="message/interlocutor/account/user/name"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -6,6 +6,7 @@
<xsl:text>Ëè÷íûé îòâåò íà ñîîáùåíèå - </xsl:text>
<xsl:value-of select="post/title"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -3,6 +3,7 @@
<xsl:import href="elems\Main.xslt"/>
<xsl:import href="elems\TextEditor.xslt"/>
<xsl:template name="specificTitle">Íîâîå ëè÷íîå ñîîáùåíèå</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -5,6 +5,7 @@
<xsl:template name="specificTitle">
<xsl:value-of select="poll/title"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -5,6 +5,7 @@
<xsl:template name="specificTitle">
<xsl:value-of select="currentLocation/post/name"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<xsl:call-template name="threadInfo"/>
<br />

@ -6,6 +6,7 @@
<xsl:text>Èçìåíåíèå ñîîáùåíèÿ - </xsl:text>
<xsl:value-of select="post/title"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -6,6 +6,7 @@
<xsl:text>Ìîäåðèðîâàíèå ñîîáùåíèÿ - </xsl:text>
<xsl:value-of select="post/title"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -6,6 +6,7 @@
<xsl:text>Îòâåò íà ñîîáùåíèå - </xsl:text>
<xsl:value-of select="post/title"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -5,6 +5,7 @@
<xsl:template name="specificTitle">
<xsl:value-of select="currentLocation/thread/name"/>
</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<xsl:call-template name="threadInfo"/>
<br />

@ -2,6 +2,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="elems\Main.xslt"/>
<xsl:template name="specificTitle"><xsl:value-of select="user/name"/></xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>

@ -4,6 +4,8 @@
<xsl:import href="UsersHeader.xslt"/>
<xsl:import href="UploadHeader.xslt"/>
<xsl:template name="isLiteEnabled">false</xsl:template>
<xsl:template name="headerLink">
<xsl:param name="url"/>
<xsl:param name="text"/>
@ -65,6 +67,37 @@
<xsl:with-param name="url">/Users/</xsl:with-param>
<xsl:with-param name="text">Ïîëüçîâàòåëè</xsl:with-param>
</xsl:call-template>
<span style="float:right">
<xsl:variable name="isLiteEnabled">
<xsl:call-template name="isLiteEnabled"/>
</xsl:variable>
<xsl:variable name="prefix">
<xsl:text>https://</xsl:text>
<xsl:value-of select="url/host"/>
<xsl:text>:</xsl:text>
<xsl:if test="url/port &gt;= 1000">
<xsl:value-of select="floor(url/port div 1000)"/>
</xsl:if>
</xsl:variable>
<a>
<xsl:if test="$isLiteEnabled='true'">
<xsl:attribute name="href">
<xsl:value-of select="$prefix"/>
<xsl:text>447</xsl:text>
<xsl:value-of select="currentUrl"/>
</xsl:attribute>
</xsl:if>
<img>
<xsl:attribute name="src">
<xsl:text>/static/images/light</xsl:text>
<xsl:if test="not($isLiteEnabled='true')">
<xsl:text>-disabled</xsl:text>
</xsl:if>
<xsl:text>.png</xsl:text>
</xsl:attribute>
</img>
</a>
</span>
</td>
</tr>
</table>

Loading…
Cancel
Save