文件操作 - dashboard.html
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/cwpsrv/var/services/users/cwp_theme/original/modules/git_manager/dashboard.html
编辑文件内容
<style media="screen"> .gitmgr-header-title { display: flex; padding-right: 15px; justify-content: space-between; } .mail-contracted { top: -7.5rem !important; right: 1.5rem !important; position: absolute !important; z-index: 1001 !important; } #list_wrapper { margin-top: 1rem; } #_git_add_form_view_ { display: none; } #_git_add_form_view_ .form-group { display: flex; align-items: center; } .new-form-flex { display: flex; flex-wrap: wrap; } .new-form-flex-form { width: 70%; padding-right: 2rem; } .new-form-flex-info { width: 30%; } .deleting_tr { background-color: #f5f5f566; color: #e7eaec; } .td-table-gitrepo-icon, .td-table-gitrepo { padding-top: 1.6rem !important; } .td-table-gitrepo-btn { padding-top: 1.3rem !important; } .td-table-gitrepo-icon i { font-size: 1.5em; } </style> <div class="row border-bottom white-bg dashboard-header"> <div class="col-lg-10"> <h2>{{langmod.GITMGRREPOS}}</h2> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="?">Home</a></li> <li class="breadcrumb-item active"><strong>{{langmod.GITMGRREPOS}}</strong></li> </ol> </div> </div> <div class="row" style="margin-top:2.5rem"> <div class="col-lg-12"> <div class="row"> <div class="col-lg-12"> <!-- Stats Box --> <div class="mail-contracted"> <div class="ibox-content"> <ul class="stat-list"> <li> <h2 class="no-margins">{{langmod.GITMGRMANAGED}} <span id="git_repos_count">{{mod.repos|length}}</span> </h2> <small>{{langmod.GITMGRLABEL1}} / {{langmod.GITMGRLABEL2}}</small> </li> </ul> </div> </div> <!-- Repo List --> {% if (mod.features.clone_repo is defined and mod.features.clone_repo != false) or (mod.features is not defined) %} <div class="ibox" id="list_wrapper"> <div class="ibox-title gitmgr-header-title"> <h4>{{langmod.GITMGRREPOS}}</h4> <div class="actions-btn text-right"> <button id="btn_add_git_repo" onclick="showAddForm()" class="btn btn-success btn-xs mr5 mb10"> <i class="fa fa-plus" style="margin-right: 5px;"></i> {{langmod.GITMGRADDNEW}} </button> </div> </div> <div class="ibox-content" id="table_repos_wrapper"> <div class="table_cron_loader"><span><i class="fa fa-circle-o-notch fa-spin"></i></span></div> </div> </div> <!-- Add Repository Form --> <div class="ibox" id="_git_add_form_view_"> <div class="ibox-title gitmgr-header-title"> <h4>{{langmod.GITMGRCLONE}}</h4> <div class="actions-btn text-right"> <button onclick="gitCloneRepo()" class="btn btn-w-m btn-sm btn-success" id="gitmgr-clone-btn"> <i class="fa fa-floppy-o" style="margin-right: 5px;" aria-hidden="true"></i> {{langmod.GITMGRCLONEBTN}} </button> <button onclick="cancelAddForm()" class="btn btn-w-m btn-sm btn-warning"> <i class="fa fa-ban" style="margin-right: 5px;" aria-hidden="true"></i> {{langmod.GITMGRCANCEL}} </button> </div> </div> <div class="ibox-content new-form-flex"> <div class="new-form-flex-form"> <form id="gitmgr-add-form" autocomplete="off"> <div class="form-group row"> <div class="col-sm-3"><b>{{langmod.GITMGRURL}}:</b></div> <div class="col-sm-9"> <input type="text" name="repo_url" class="form-control" data-required="true" id="gitmgr_repo_url" placeholder="https://github.com/user/repo.git" required> </div> </div> <div class="form-group row" style="margin-bottom: 5px;"> <div class="col-sm-3"><b>{{langmod.GITMGRTARGET}}:</b></div> <div class="col-sm-9"> <input type="text" name="target_dir" class="form-control" id="gitmgr_target_dir" placeholder="public_html/mysite" required> </div> </div> <div class="form-group row" style="margin-bottom: 5px;"> <div class="col-sm-3"><b>{{langmod.GITMGRBRANCH}}:</b></div> <div class="col-sm-9"> <input type="text" name="branch" class="form-control" id="gitmgr_branch" placeholder="main" value="main"> </div> </div> <div class="form-group row" style="margin-bottom: 0px;"> <div class="col-sm-3"><b>{{langmod.GITMGRNAME}}:</b></div> <div class="col-sm-9"> <input type="text" name="repo_name" class="form-control" id="gitmgr_repo_name" placeholder="My Project"> </div> </div> </form> </div> <div class="new-form-flex-info"> <div class="row"> <div class="col-md-12"> <div class="alert alert-info" style="margin-bottom: 0px;"> <div> <span class="fa-stack"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa fa-info fa-stack-1x fa-inverse"></i> </span> </div> <p><b>{{langmod.GITMGRNOTE}}:</b> {{langmod.GITMGRBLOCKED}}</p> <hr style="margin:10px 0;"> <p>HTTPS URLs from GitHub, GitLab, Bitbucket, Gitea and Codeberg are automatically converted to SSH (<code>git@host:path</code>).</p> <p>A deploy key is generated for each repository — copy it from the <i class="fa fa-key"></i> button and add it to your repository's Deploy Keys settings.</p> </div> </div> </div> </div> </div> <div class="ibox-footer"> <div class="text-right"> <button onclick="gitCloneRepo()" class="btn btn-w-m btn-sm btn-success" id="gitmgr-clone-btn-footer"> <i class="fa fa-floppy-o" style="margin-right: 5px;" aria-hidden="true"></i> {{langmod.GITMGRCLONEBTN}} </button> <button onclick="cancelAddForm()" class="btn btn-w-m btn-sm btn-warning"> <i class="fa fa-ban" style="margin-right: 5px;" aria-hidden="true"></i> {{langmod.GITMGRCANCEL}} </button> </div> </div> </div> {% else %} <div class="ibox"> <div class="ibox-content"> <div class="empty_list"> <h4 class="text-success">{{langmod.GITMGREMPTY}}</h4> </div> </div> </div> {% endif %} </div> </div> </div> </div>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件