PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/source/app/NOS.Wiki/History.aspx

http://github.com/agross/netopenspace
ASP.NET | 57 lines | 52 code | 5 blank | 0 comment | 0 complexity | d6befaf2f4a43d7401565246fef94fd2 MD5 | raw file
 1<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="ScrewTurn.Wiki.History" Title="Untitled Page" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" Codebehind="History.aspx.cs" %>
 2
 3<asp:Content ID="CtnHistory" ContentPlaceHolderID="CphMaster" Runat="Server">
 4
 5    <h1 class="pagetitlesystem"><asp:Literal ID="lblTitle" runat="server" meta:resourcekey="lblTitleResource1" Text="-- Title --" /></h1>
 6    <p><asp:Literal ID="lblCompare" runat="server" Text="Compare Page Revisions" meta:resourcekey="lblCompareResource1" /></p> 
 7    <asp:DropDownList ID="lstRev1" runat="server" meta:resourcekey="lstRev1Resource1" />
 8    <asp:DropDownList ID="lstRev2" runat="server" meta:resourcekey="lstRev2Resource1" />
 9    <asp:Button ID="btnCompare" runat="server" Text="Compare" OnClick="btnCompare_Click" meta:resourcekey="btnCompareResource1" />
10    <br /><br />
11    
12    <asp:Literal ID="lblHistory" runat="server" meta:resourcekey="lblHistoryResource1" />
13    
14    <asp:Repeater ID="rptHistory" runat="server" OnItemCommand="rptHistory_ItemCommand">
15		<HeaderTemplate>
16			<table id="HistoryTable" class="generic" cellpadding="0" cellspacing="0">
17				<thead>
18				<tr class="tableheader">
19					<th style="text-align: right;">#</th>
20					<th><asp:Literal ID="lblTitle" runat="server" Text="Title" EnableViewState="False" meta:resourcekey="lblTitleResource2" /></th>
21					<th><asp:Literal ID="lblSavedOn" runat="server" Text="Saved on" EnableViewState="False" meta:resourcekey="lblSavedOnResource1" /></th>
22					<th><asp:Literal ID="lblSavedBy" runat="server" Text="Saved by" EnableViewState="False" meta:resourcekey="lblSavedByResource1" /></th>
23					<th><asp:Literal ID="lblComment" runat="server" Text="Comment" EnableViewState="False" meta:resourcekey="lblCommentResource1" /></th>
24					<th>&nbsp;</th>
25				</tr>
26				</thead>
27				<tbody>
28		</HeaderTemplate>
29		<ItemTemplate>
30			<tr class="tablerow">
31				<td style="text-align: right;"><%# Eval("Revision") %></td>
32				<td><a href='<%# ScrewTurn.Wiki.UrlTools.BuildUrl("History.aspx?Page=", ScrewTurn.Wiki.Tools.UrlEncode((string)Eval("Page")), "&amp;Revision=", (string)Eval("Revision")) %>'><%# Eval("Title") %></a></td>
33				<td><%# Eval("SavedOn") %></td>
34				<td><%# Eval("SavedBy") %></td>
35				<td><%# Eval("Comment") %></td>
36				<td><asp:LinkButton ID="btnRollback" runat="server" Visible='<%# (bool)Eval("CanRollback") %>' Text="Rollback" CommandName="Rollback" CommandArgument='<%# Eval("Revision") %>' 
37						OnClientClick="javascript:return __RequestConfirm();" meta:resourcekey="btnRollbackResource2" /></td>
38			</tr>
39		</ItemTemplate>
40		<AlternatingItemTemplate>
41			<tr class="tablerowalternate">
42				<td style="text-align: right;"><%# Eval("Revision") %></td>
43				<td><a href='<%# ScrewTurn.Wiki.UrlTools.BuildUrl("History.aspx?Page=", ScrewTurn.Wiki.Tools.UrlEncode((string)Eval("Page")), "&amp;Revision=", (string)Eval("Revision")) %>'><%# Eval("Title") %></a></td>
44				<td><%# Eval("SavedOn") %></td>
45				<td><%# Eval("SavedBy") %></td>
46				<td><%# Eval("Comment") %></td>
47				<td><asp:LinkButton ID="btnRollback" runat="server" Visible='<%# (bool)Eval("CanRollback") %>' Text="Rollback" CommandName="Rollback" CommandArgument='<%# Eval("Revision") %>' 
48						OnClientClick="javascript:return __RequestConfirm();" meta:resourcekey="btnRollbackResource1" /></td>
49			</tr>
50		</AlternatingItemTemplate>
51		<FooterTemplate>
52			</tbody>
53			</table>
54		</FooterTemplate>
55    </asp:Repeater>
56
57</asp:Content>