-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.html
More file actions
135 lines (135 loc) · 6.08 KB
/
user.html
File metadata and controls
135 lines (135 loc) · 6.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ちえぴったん | ユーザー</title>
<meta name="name" content="content">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/user.css">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/vue.min.js"></script>
<script src="js/user.js"></script>
</head>
<body>
<!-- header -->
<div class="container" id="header">
<div class="row" id="header-wrapper">
<div class="col-xs-4 col-md-4 col-lg-4" id="icon-notice">
<a href="home.html"><img src="img/icon/notice.png" alt="notice_icon" /></a>
</div>
<div class="col-xs-4 col-md-4 col-lg-4" id="logo-img">
<div class="centering">
<a href="home.html"><img src="img/logo-02.png" alt="logo" /></a>
</div>
</div>
<div class="col-xs-4 col-md-4 col-lg-4" id="icons">
<a href="create.html"><img src="img/icon/ticket.png" alt="ticket_icon" /></a>
<a href="search.html"><img src="img/icon/search.png" alt="search_icon" /></a>
</div>
</div>
</div>
<div class="container" id="main">
<!-- user info -->
<div id="userinfo" class="row">
<div class="row centering">
<img src="{{userinfo.profile_img_url}}" alt="user" />
</div>
<div class="row">
<a href="reviewlist.html?id={{userinfo.id}}">
<div class="col-xs-8 col-md-8 col-lg-8 centering">
<strong>{{userinfo.review_ave >= 1.0 ? '★':'☆' }} </strong>
<strong>{{userinfo.review_ave >= 2.0 ? '★':'☆' }} </strong>
<strong>{{userinfo.review_ave >= 3.0 ? '★':'☆' }} </strong>
<strong>{{userinfo.review_ave >= 4.0 ? '★':'☆' }} </strong>
<strong>{{userinfo.review_ave >= 5.0 ? '★':'☆' }} </strong>
<strong>{{userinfo.review_ave}}</strong>
</div>
</a>
</div>
<div class="row">
<div class="col-xs-8 col-md-8 col-lg-8 centering">
<span>{{userinfo.last_name}} {{userinfo.first_name}}</span>
</div>
</div>
<div class="row">
<div class="col-xs-8 col-md-8 col-lg-8 centering">
<span>{{userinfo.username}}</span>
</div>
</div>
</div>
<!-- menu -->
<div id="links" class="row">
<div class="row">
<div class="col-xs-4 col-md-4 col-lg-4">
<div class="centering">
<button class="btn_1" onclick="location.href='teached.html?user_id='+{{userinfo.id}}" type="button" name="button"><img src="img/icon/teach.png" alt="teach"/></button>
</div>
</div>
<div class="col-xs-4 col-md-4 col-lg-4">
<div class="centering">
<button class="btn_1" onclick="location.href='learned.html?user_id='+{{userinfo.id}}" type="button" name="button"><img src="img/icon/learn.png" alt="teach"/></button>
</div>
</div>
<div class="col-xs-4 col-md-4 col-lg-4">
<div class="centering">
<button class="btn_1" onclick="location.href='favorite.html?user_id='+{{userinfo.id}}" type="button" name="button"><img src="img/icon/save.png" alt="teach"/></button>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-8 col-md-8 col-lg-8 centering">
<div id="usermessage" class="row">
<span>{{userinfo.introduction}}</span>
</div>
</div>
</div>
<div id="contents-title" class="row">
<span>募集中の</span><img src="img/teach-plz-y.png" alt="teach_logo" />
</div>
</div>
<!-- contents -->
<div id="contents-wrapper" class="row">
<div id="contents" class="row">
<div class="row ticket" v-for="ticket in tickets">
<a href="detail.html?ticket_id={{ticket.id}}">
<div class="ticket_img col-xs-4 col-md-4 col-lg-4" style="background-image:url({{ticket.header_img_url}});">
<!-- background img -->
</div>
<div class=" ticket-info col-xs-8 col-md-8 col-lg-8">
<div class="title row">
<strong>{{ticket.title}}</strong>
</div>
<div class="row">
<div class="t-info col-xs-6 col-md-6 col-lg-6">
<img src="img/icon/price.png" alt="price"/><span> {{ticket.price}}円</span>
</div>
<div class="t-info col-xs-6 col-md-6 col-lg-6">
<img src="img/icon/time.png" alt="price"/><span> {{ticket.time}}h</span>
</div>
</div>
<div class="row">
<div class="t-info col-xs-12 col-md-12 col-lg-12">
<img src="img/icon/location.png" alt="location"/><span> {{ticket.skype ? 'Skype':''}} {{ticket.offline_place}}</span>
</div>
</div>
<div class="row">
<div class="accountimage col-xs-5 col-md-5 col-lg-5">
<img src="{{ticket.user.profile_img_url}}" alt="" /><strong>{{ticket.user.username}}</strong>
</div>
<div class="date col-xs-4 col-md-4 col-lg-4">
<strong>{{ticket.updated_at.substr(0,10)}}</strong>
</div>
<div class="apply col-xs-3 col-md-3 col-lg-3">
<img src="img/icon/person.png" alt="person" /><strong>{{ticket.stocked_num}}</strong>
</div>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</body>
</html>