1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-21 13:41:37 +00:00

Encrypt stored files in SHA 256

This commit is contained in:
jendib
2013-08-20 21:51:07 +02:00
parent 906de329ae
commit db7a9f0e4a
21 changed files with 218 additions and 285 deletions

View File

@@ -1,6 +1,6 @@
<img src="img/loader.gif" ng-if="!document && isEdit()" />
<img src="img/loader.gif" ng-show="!document && isEdit()" />
<div ng-if="document || !isEdit()">
<div ng-show="document || !isEdit()">
<form class="form-horizontal" name="documentForm">
<div class="control-group" ng-class="{ error: !documentForm.title.$valid }">
<label class="control-label" for="inputTitle">Title</label>

View File

@@ -1,6 +1,6 @@
<img src="img/loader.gif" ng-if="!document" />
<img src="img/loader.gif" ng-show="!document" />
<div ng-if="document">
<div ng-show="document">
<div class="text-right">
<div class="btn-group">
<button class="btn btn-danger" ng-click="deleteDocument(document)"><span class="icon-trash icon-white"></span> Delete</button>
@@ -9,7 +9,7 @@
</div>
<div class="page-header">
<h1>{{ document.title }} <small>{{ document.create_date | date: 'yyyy-MM-dd' }}</small> <img ng-src="img/flag/{{ document.language }}.png" title="{{ document.language }}" /></h1>
<h1>{{ document.title }} <small>{{ document.create_date | date: 'yyyy-MM-dd' }}</small> <img ng-if="document" ng-src="img/flag/{{ document.language }}.png" title="{{ document.language }}" /></h1>
<p>
<button class="btn btn-small btn-inverse" ng-click="share()"><span class="icon-share icon-white"></span> Share</button>
<button class="btn btn-small" ng-repeat="share in document.shares" ng-click="showShare(share)"><span class="icon-ok"></span> {{ share.name ? share.name : 'shared' }}</button>

View File

@@ -1,6 +1,6 @@
<img src="img/loader.gif" ng-if="!user && isEdit()" />
<img src="img/loader.gif" ng-show="!user && isEdit()" />
<div ng-if="user || !isEdit()">
<div ng-show="user || !isEdit()">
<h2 ng-show="isEdit()">Edit
<small>"{{ user.username }}"</small>
</h2>