<commit_before><!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <title>Site Settings</title>

    <link rel="apple-touch-icon-precomposed" sizes="57x57" href="//images/apple-touch-icon-57x57.png" />
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/images/apple-touch-icon-114x114.png" />
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/images/apple-touch-icon-72x72.png" />
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/images/apple-touch-icon-144x144.png" />
    <link rel="apple-touch-icon-precomposed" sizes="60x60" href="/images/apple-touch-icon-60x60.png" />
    <link rel="apple-touch-icon-precomposed" sizes="120x120" href="/images/apple-touch-icon-120x120.png" />
    <link rel="apple-touch-icon-precomposed" sizes="76x76" href="/images/apple-touch-icon-76x76.png" />
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/images/apple-touch-icon-152x152.png" />
    <link rel="icon" type="image/png" href="/images/favicon-196x196.png" sizes="196x196" />
    <link rel="icon" type="image/png" href="/images/favicon-96x96.png" sizes="96x96" />
    <link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32" />
    <link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16" />
    <link rel="icon" type="image/png" href="images/favicon-128.png" sizes="128x128" />
    <meta name="application-name" content="&nbsp;"/>
    <meta name="msapplication-TileColor" content="#FFFFFF" />
    <meta name="msapplication-TileImage" content="mstile-144x144.png" />
    <meta name="msapplication-square70x70logo" content="mstile-70x70.png" />
    <meta name="msapplication-square150x150logo" content="mstile-150x150.png" />
    <meta name="msapplication-wide310x150logo" content="mstile-310x150.png" />
    <meta name="msapplication-square310x310logo" content="mstile-310x310.png" />

    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400&display=swap" rel="stylesheet">
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"
          integrity="<KEY>" crossorigin="anonymous"/>
    <link rel="stylesheet"
          href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.11.2/css/bootstrap-select.min.css"/>
    <link type="text/css" rel="stylesheet" th:href="@{/css/global.css}"/>
    <link type="text/css" rel="stylesheet" th:href="@{/css/settings.css}"/>
</head>

<body>
<div class="row">
    <!--Sidebar Partial-->
    <div th:replace="sidebar/sidebar-partial :: sidebar(active='')"></div>

    <!-- Main Content -->
    <div class="container-fluid">
        <div class="side-body">
            <div class="row settings-body">
                <div class="col-lg-3">
                    <div th:replace="adminsettings/admin-settings-partial :: admin-settings-partial"></div>
                </div>

                <div class="col-lg-9 ">
                    <div class="settings-header">
                        <h1 th:inline="text">[[${newspost.getTitle()}]] Settings</h1>
                    </div>

                    <div class="row">
                        <div class="col-lg-12">
                            <!--/*@thymesVar id="site" type="space.hideaway.model.site.Site"*/-->
                            <form class="form-horizontal" th:action="@{/adminsettings/news?newsID=} + *{id}"
                                  method="post" th:object="${newspost}">
                                <input type="hidden" th:field="*{id}"/>

                                <div class="form-group">
                                    <label for="title" class="col-sm-2 control-label">News Post Title</label>
                                    <div class="col-sm-10">
                                        <input type="text" name="title" id="title" required="required" class="form-control"
                                               placeholder="" th:field="*{title}"/>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="content" class="col-sm-2 control-label">News Post Content</label>
                                    <p><b>Note:</b> Use HTML tags for formatting</p>
                                    <div class="col-sm-10">
                                        <textarea name="content" id="content" class="form-control" required="required"
                                                  placeholder="" th:field="*{content}"></textarea>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" id="update" name="update" class="btn btn-default" th:value="update">Update</button>

                                        <button type="button"  class="btn btn-danger"
                                                data-toggle="modal" data-target="#myModal" >Delete</button>

                                        <div id="myModal" class="modal fade" role="dialog">
                                            <div class="modal-dialog">
                                                <!-- Modal content-->
                                                <div class="modal-content">
                                                    <div class="modal-body">
                                                        <p>Are you sure you want to delete this news post?</p>
                                                    </div>
                                                    <div class="modal-footer">
                                                        <button id="delete" name="delete" type="submit"
                                                                class="btn btn-danger" th:value="delete">Delete
                                                        </button>
                                                        <button type="button" class="btn btn-default"
                                                                data-dismiss="modal">Close<commit_msg><NAME> 2/28/20 Fixed some weird formatting with news settings page<commit_after><!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <title>Site Settings</title>

    <link rel="apple-touch-icon-precomposed" sizes="57x57" href="//images/apple-touch-icon-57x57.png" />
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/images/apple-touch-icon-114x114.png" />
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/images/apple-touch-icon-72x72.png" />
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/images/apple-touch-icon-144x144.png" />
    <link rel="apple-touch-icon-precomposed" sizes="60x60" href="/images/apple-touch-icon-60x60.png" />
    <link rel="apple-touch-icon-precomposed" sizes="120x120" href="/images/apple-touch-icon-120x120.png" />
    <link rel="apple-touch-icon-precomposed" sizes="76x76" href="/images/apple-touch-icon-76x76.png" />
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/images/apple-touch-icon-152x152.png" />
    <link rel="icon" type="image/png" href="/images/favicon-196x196.png" sizes="196x196" />
    <link rel="icon" type="image/png" href="/images/favicon-96x96.png" sizes="96x96" />
    <link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32" />
    <link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16" />
    <link rel="icon" type="image/png" href="images/favicon-128.png" sizes="128x128" />
    <meta name="application-name" content="&nbsp;"/>
    <meta name="msapplication-TileColor" content="#FFFFFF" />
    <meta name="msapplication-TileImage" content="mstile-144x144.png" />
    <meta name="msapplication-square70x70logo" content="mstile-70x70.png" />
    <meta name="msapplication-square150x150logo" content="mstile-150x150.png" />
    <meta name="msapplication-wide310x150logo" content="mstile-310x150.png" />
    <meta name="msapplication-square310x310logo" content="mstile-310x310.png" />

    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400&display=swap" rel="stylesheet">
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"
          integrity="<KEY>" crossorigin="anonymous"/>
    <link rel="stylesheet"
          href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.11.2/css/bootstrap-select.min.css"/>
    <link type="text/css" rel="stylesheet" th:href="@{/css/global.css}"/>
    <link type="text/css" rel="stylesheet" th:href="@{/css/settings.css}"/>
</head>

<body>
<div class="row">
    <!--Sidebar Partial-->
    <div th:replace="sidebar/sidebar-partial :: sidebar(active='')"></div>

    <!-- Main Content -->
    <div class="container-fluid">
        <div class="side-body">
            <div class="row settings-body">
                <div class="col-lg-3">
                    <div th:replace="adminsettings/admin-settings-partial :: admin-settings-partial"></div>
                </div>

                <div class="col-lg-9 ">
                    <div class="settings-header">
                        <h1 th:inline="text">[[${newspost.getTitle()}]] Settings</h1>
                    </div>

                    <div class="row">
                        <div class="col-lg-12">
                            <!--/*@thymesVar id="site" type="space.hideaway.model.site.Site"*/-->
                            <form class="form-horizontal" th:action="@{/adminsettings/news?newsID=} + *{id}"
                                  method="post" th:object="${newspost}">
                                <input type="hidden" th:field="*{id}"/>

                                <div class="form-group">
                                    <label for="title" class="col-sm-2 control-label">News Post Title</label>
                                    <div class="col-sm-10">
                                        <input type="text" name="title" id="title" required="required" class="form-control"
                                               placeholder="" th:field="*{title}"/>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="content" class="col-sm-2 control-label">News Post Content <b>Note:</b> Use HTML tags for formatting</label>
                                    <div class="col-sm-10">
                                        <textarea name="content" id="content" class="form-control" required="required"
                                                  placeholder="" th:field="*{content}"></textarea>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" id="update" name="update" class="btn btn-default" th:value="update">Update</button>

                                        <button type="button"  class="btn btn-danger"
                                                data-toggle="modal" data-target="#myModal" >Delete</button>

                                        <div id="myModal" class="modal fade" role="dialog">
                                            <div class="modal-dialog">
                                                <!-- Modal content-->
                                                <div class="modal-content">
                                                    <div class="modal-body">
                                                        <p>Are you sure you want to delete this news post?</p>
                                                    </div>
                                                    <div class="modal-footer">
                                                        <button id="delete" name="delete" type="submit"
                                                                class="btn btn-danger" th:value="delete">Delete
                                                        </button>
                                                        <button type="button" class="btn btn-default"
                                                                data-dismiss="modal">Close
{'fraction_non_alphanumeric': 0.15438958564851563, 'fraction_numerical': 0.03262422606762978, 'mean_word_length': 1.561292945720675, 'pattern_counts': {'":': 0, '<': 186, '<?xml version=': 0, '>': 186, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 95, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2763148', 'n_tokens_mistral': 3601, 'n_tokens_neox': 3258, 'n_words': 520}