<commit_before><%@ Control Language="c#" AutoEventWireup="True" Inherits="YAF.Pages.Admin.boards" Codebehind="boards.ascx.cs" %>

<%@ Import Namespace="YAF.Types.Extensions" %>

<YAF:PageLinks runat="server" ID="PageLinks" />

    <div class="row">
        <div class="col-xl-12">
            <h1><YAF:LocalizedLabel ID="LocalizedLabel1" runat="server" 
                                    LocalizedTag="TITLE" 
                                    LocalizedPage="ADMIN_BOARDS" /></h1>
        </div>
    </div>
    <div class="row">
        <div class="col-xl-12">
            <div class="card mb-3">
                <div class="card-header">
                    <i class="fa fa-globe fa-fw text-secondary pr-1"></i>
                    <YAF:LocalizedLabel ID="LocalizedLabel2" runat="server"
                                        LocalizedTag="TITLE"
                                        LocalizedPage="ADMIN_BOARDS" />
                </div>
                <div class="card-body">
                    <asp:Repeater ID="List" runat="server">
		                <HeaderTemplate>
                            <ul class="list-group">
		    </HeaderTemplate>
			<ItemTemplate>
                <li 
                    class='list-group-item list-group-item-action list-group-item-menu <%# this.Eval("ID").ToType<int>() != this.PageContext.PageBoardID ? "" : "active" %>'>
				<div class="d-flex w-100 justify-content-between">
                    <h5 class="mb-1">
                        <%# this.HtmlEncode(this.Eval( "Name")) %>
                    </h5>
                    <small>
                        <YAF:LocalizedLabel ID="LocalizedLabel4" runat="server" 
                                            LocalizedTag="ID" 
                                            LocalizedPage="ADMIN_BOARDS" />: <%# this.Eval( "ID") %>
                    </small>
                </div>
                <small>
                    <YAF:ThemeButton ID="ThemeButtonEdit" runat="server"
                                         Type="Info" 
                                         Size="Small"
                                         CommandName="edit" 
                                         CommandArgument='<%# this.Eval( "ID") %>'
                                         TitleLocalizedTag="EDIT"
                                         TextLocalizedTag="EDIT"
                                         Icon="edit">
                    </YAF:ThemeButton>
                    <YAF:ThemeButton ID="ThemeButtonDelete" runat="server" 
                                         Type="Danger" 
                                         Size="Small"
                                         CommandName="delete" 
                                         CommandArgument='<%# this.Eval( "ID") %>'
                                         TitleLocalizedTag="DELETE"
                                         TextLocalizedTag="DELETE"
                                         Icon="trash"
                                         ReturnConfirmText='<%# this.GetText("ADMIN_BOARDS", "CONFIRM_DELETE") %>'>
                        </YAF:ThemeButton>
                    </small>
                    <div class="dropdown-menu context-menu" aria-labelledby="context menu">
                        <YAF:ThemeButton ID="ThemeButton1" runat="server"
                                         Type="None"
                                         CssClass="dropdown-item"
                                         CommandName="edit" 
                                         CommandArgument='<%# this.Eval( "ID") %>'
                                         TitleLocalizedTag="EDIT"
                                         TextLocalizedTag="EDIT"
                                         Icon="edit">
                        </YAF:ThemeButton>
                        <YAF:ThemeButton ID="ThemeButton2" runat="server" 
                                         Type="None"
                                         CssClass="dropdown-item"
                                         CommandName="delete" 
                                         CommandArgument='<%# this.Eval( "ID") %>'
                                         TitleLocalizedTag="DELETE"
                                         TextLocalizedTag="DELETE"
                                         Icon="trash"
                                         ReturnConfirmText='<%# this.GetText("ADMIN_BOARDS", "CONFIRM_DELETE") %>'>
                        </YAF:ThemeButton>
                        <div class="dropdown-divider"></div>
                        <YAF:ThemeButton ID="New" runat="server" 
                                         Type="None"<commit_msg>disable the deleting of the board if there is only one board<commit_after><%@ Control Language="c#" AutoEventWireup="True" Inherits="YAF.Pages.Admin.boards" Codebehind="boards.ascx.cs" %>

<%@ Import Namespace="YAF.Types.Extensions" %>

<YAF:PageLinks runat="server" ID="PageLinks" />

    <div class="row">
        <div class="col-xl-12">
            <h1><YAF:LocalizedLabel ID="LocalizedLabel1" runat="server" 
                                    LocalizedTag="TITLE" 
                                    LocalizedPage="ADMIN_BOARDS" /></h1>
        </div>
    </div>
    <div class="row">
        <div class="col-xl-12">
            <div class="card mb-3">
                <div class="card-header">
                    <i class="fa fa-globe fa-fw text-secondary pr-1"></i>
                    <YAF:LocalizedLabel ID="LocalizedLabel2" runat="server"
                                        LocalizedTag="TITLE"
                                        LocalizedPage="ADMIN_BOARDS" />
                </div>
                <div class="card-body">
                    <asp:Repeater ID="List" runat="server">
		                <HeaderTemplate>
                            <ul class="list-group">
		    </HeaderTemplate>
			<ItemTemplate>
                <li 
                    class='list-group-item list-group-item-action list-group-item-menu <%# this.Eval("ID").ToType<int>() != this.PageContext.PageBoardID ? "" : "active" %>'>
				<div class="d-flex w-100 justify-content-between">
                    <h5 class="mb-1">
                        <%# this.HtmlEncode(this.Eval( "Name")) %>
                    </h5>
                    <small>
                        <YAF:LocalizedLabel ID="LocalizedLabel4" runat="server" 
                                            LocalizedTag="ID" 
                                            LocalizedPage="ADMIN_BOARDS" />: <%# this.Eval( "ID") %>
                    </small>
                </div>
                <small>
                    <YAF:ThemeButton ID="ThemeButtonEdit" runat="server"
                                         Type="Info" 
                                         Size="Small"
                                         CommandName="edit" 
                                         CommandArgument='<%# this.Eval( "ID") %>'
                                         TitleLocalizedTag="EDIT"
                                         TextLocalizedTag="EDIT"
                                         Icon="edit">
                    </YAF:ThemeButton>
                    <YAF:ThemeButton ID="ThemeButtonDelete" runat="server"
                                     Type="Danger"
                                     Size="Small"
                                     CommandName="delete" 
                                     CommandArgument='<%# this.Eval( "ID") %>'
                                     TitleLocalizedTag="DELETE"
                                     TextLocalizedTag="DELETE"
                                     Icon="trash"
                                     ReturnConfirmText='<%# this.GetText("ADMIN_BOARDS", "CONFIRM_DELETE") %>'
                                     Visible='<%# this.List.Items.Count > 1  %>'>
                        </YAF:ThemeButton>
                    </small>
                    <div class="dropdown-menu context-menu" aria-labelledby="context menu">
                        <YAF:ThemeButton ID="ThemeButton1" runat="server"
                                         Type="None"
                                         CssClass="dropdown-item"
                                         CommandName="edit" 
                                         CommandArgument='<%# this.Eval( "ID") %>'
                                         TitleLocalizedTag="EDIT"
                                         TextLocalizedTag="EDIT"
                                         Icon="edit">
                        </YAF:ThemeButton>
                        <YAF:ThemeButton ID="ThemeButton2" runat="server" 
                                         Type="None"
                                         CssClass="dropdown-item"
                                         CommandName="delete" 
                                         CommandArgument='<%# this.Eval( "ID") %>'
                                         TitleLocalizedTag="DELETE"
                                         TextLocalizedTag="DELETE"
                                         Icon="trash"
                                         ReturnConfirmText='<%# this.GetText("ADMIN_BOARDS", "CONFIRM_DELETE") %>'
                                         Visible='<%# this.List.Items.Count > 1  %>'>
                        </YAF:ThemeButton>
                        <div class="dropdown-divider"></div>
                        <YAF:ThemeButton ID="New" runat="server" 
                                         Type="None"
{'fraction_non_alphanumeric': 0.11061254304497548, 'fraction_numerical': 0.004174058228112282, 'mean_word_length': 0.9183346677341874, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 135, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1364907', 'n_tokens_mistral': 2162, 'n_tokens_neox': 1990, 'n_words': 318}