2016-08-10 23:49:25 +08:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
2016-09-23 17:42:12 +08:00
|
|
|
<head>
|
2016-08-10 23:49:25 +08:00
|
|
|
<meta charset="utf-8">
|
|
|
|
|
|
|
|
<!-- Enable IE Standards mode -->
|
|
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
|
|
|
2019-07-09 16:28:15 +08:00
|
|
|
<title><%= t('assets.head_title.edit', file_name: @asset.file_name) %></title>
|
2016-08-10 23:49:25 +08:00
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="viewport"
|
2016-09-23 17:42:12 +08:00
|
|
|
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
|
2016-08-10 23:49:25 +08:00
|
|
|
|
2016-09-29 18:19:29 +08:00
|
|
|
<link rel="shortcut icon" href='<%= @favicon_url %>' />
|
2016-08-10 23:49:25 +08:00
|
|
|
|
|
|
|
<style type="text/css">
|
2016-09-23 17:42:12 +08:00
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
overflow:hidden;
|
|
|
|
-ms-content-zooming: none;
|
|
|
|
}
|
|
|
|
#office_frame {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
margin: 0;
|
|
|
|
border: none;
|
|
|
|
display: block;
|
|
|
|
}
|
2016-08-10 23:49:25 +08:00
|
|
|
</style>
|
2016-09-23 17:42:12 +08:00
|
|
|
</head>
|
|
|
|
<body>
|
2016-09-29 18:19:29 +08:00
|
|
|
<form id='office_form' name='office_form' target='office_frame'
|
|
|
|
action='<%= @action_url %>' method='post'>
|
|
|
|
<input name='access_token' value='<%= @token %>' type='hidden'/>
|
|
|
|
<input name='access_token_ttl' value='<%= @ttl %>' type='hidden'/>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<span id="frameholder"></span>
|
|
|
|
|
2023-05-03 17:31:17 +08:00
|
|
|
<%= javascript_include_tag 'assets/office_form', nonce: true %>
|
2016-09-29 18:19:29 +08:00
|
|
|
</body>
|
2016-09-23 17:42:12 +08:00
|
|
|
</html>
|