OSDN Git Service

a1beffd18b318bb1fbb12df977b9a0fc92d77833
[karesansui/karesansui.git] / karesansui / templates / default / hostby1networkstorageby1 / hostby1networkstorageby1.part
1 <%doc>Copyright (C) 2010 HDE, Inc.</%doc>
2 <%inherit file="../include/common.part" />
3
4 <div id="network_storage_detail_display">
5     <table class="detail-contents">
6         <tr>
7             <th>${_('General Information')}</th>
8             <td class="detail-separator">
9                 <img src="${ctx.homepath}/static/images/table-space.gif">
10             </td>
11             <td>
12                 <table cellspacing="0" class="border detail-sub-contents">
13                     <tr>
14                         <th>${_('Network Storage Type')}</th>
15                         <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
16                         <td><pre>${info['type'] | h}</pre></td>
17                     </tr>
18                     <tr>
19                         <th>${_('Status')}</th>
20                         <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
21 %if info['activity'] == 1:
22                         <td><pre>${_('Active')}</pre></td>
23 %elif info['activity'] == 0:
24                         <td><pre>${_('Inactive')}</pre></td>
25 %else:
26                         <td><pre>${_('Deleted')}</pre></td>
27 %endif
28                     </tr>
29                     <tr>
30                         <!-- 自動接続 -->
31                         <th>${_('Auto Connect')}</th>
32                         <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
33 %if info['autostart'] == 1:
34                         <td><pre>${_('ON')}</pre></td>
35 %elif info['autostart'] == 0:
36                         <td><pre>${_('OFF')}</pre></td>
37 %else:
38                         <td><pre></pre></td>
39 %endif
40                     </tr>
41                 </table>
42             </td>
43         </tr>
44
45         <tr><td colspan='3'><div class='detail-space'/></td></tr>
46
47         <tr>
48             <th>${_('Details')}</th>
49             <td class="detail-separator">
50                 <img src="${ctx.homepath}/static/images/table-space.gif">
51             </td>
52             <td>
53                 <table cellspacing="0" class="border detail-sub-contents">
54                     <tr>
55                       <!--
56                           TRANSLATORS:
57                           上から順に
58                           ・接続先のホスト名(iSCSIの場合は勝手にIPアドレスになる)
59                           ・iSCSIターゲットのIQN
60                             iSCSIターゲットを一意に識別するためのユニークキー
61                             一つのホストで複数のIQNを持っている場合があります
62                           ・接続先のポート番号
63                           ・認証の種類
64                             iSCSIの場合は基本的に「認証なし」か「CHAP認証」のどちらか。
65                           ・接続されているディスク
66                             *iSCSI接続中のみ表示
67                             iSCSI接続を行うと/dev/sd*に出てくるデバイス名の一覧
68                         -->
69                         <th>${_('Target Host Name')}</th>
70                         <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
71                         <td><pre>${info['hostname'] | h}</pre></td>
72                     </tr>
73                     <tr>
74                         <th>${_('Target IQN')}</th>
75                         <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
76                         <td><pre>${info['iqn'] | h}</pre></td>
77                     </tr>
78                     <tr>
79                         <th>${_('Port Number')}</th>
80                         <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
81                         <td><pre>${info['port'] | h}</pre></td>
82                     </tr>
83                     <tr>
84                         <th>${_('Authentication Type')}</th>
85                         <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
86                         <td><pre>${info['auth'] | h}</pre></td>
87                     </tr>
88 %if info['activity'] == 1:
89                     <tr>
90                         <th>${_('Volumes Connected')}</th>
91                         <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
92                         <td>
93     %for disk in info['disk_list']:
94                               <pre>${"%s/%s" % (disk['realpath_list'][0], disk['realpath_list'][1]) | h}</pre>
95     %endfor
96                         </td>
97                     </tr>
98 %endif
99                 </table>
100             </td>
101         </tr>
102     </table>
103 </div>