Skip to content

Commit

Permalink
route profil mise a jour / #33
Browse files Browse the repository at this point in the history
  • Loading branch information
theomarie committed Apr 2, 2020
1 parent f7217ca commit c994d18
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 65 deletions.
3 changes: 2 additions & 1 deletion app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ Router.map(function () {

this.route('developer', { path: 'developer/:developer_id' }, function () {
this.route('home');
this.route('profil');
});
this.route('profil');

});

export default Router;
2 changes: 1 addition & 1 deletion app/routes/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default Route.extend({
category: "Developers",
title: developer.username,
description: developer.fullName,
url: "/developer/" + developer.id + "/home"
url: "/developer/profil/" + developer.id
});
});
let connected = (localStorage.getItem("connected") == "true");
Expand Down
4 changes: 4 additions & 0 deletions app/routes/profil.js → app/routes/developer/profil.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import Route from '@ember/routing/route';

export default Route.extend({
model() {
this.paramsFor("developer").developer_id;
}

});
73 changes: 73 additions & 0 deletions app/templates/developer/profil.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{{outlet}}
<div class="ui grid">
<div class="four wide column">
<div class="ui card">
<div class="image">
<img src="https://fomantic-ui.com/images/avatar2/large/kristy.png">
</div>
<div class="content">
<a class="header">Theo Marie</a>
<div class="meta">
<span class="date">NYTS</span>
</div>
<div class="description">
Développeur en plein combat contre la flemme !
</div>
</div>
<div class="extra content">
<button class="ui secondary button">
<i class="icon user"></i>
Follow
</button>
<button class="ui secondary button">
<i class="icon cog"></i>
Edit
</button>
</div>
</div>

</div>
<div class="twelve wide column">
<div>
<span class="ui large white text">List des projets</span>
</div>
<h4 class="ui horizontal left aligned divider header">
<i class=" align icon"></i>
<font style="vertical-align: inherit;">
<font style="vertical-align: inherit;">

</font>
</font>
</h4>
<div class="ui cards">
<div class="card">
<div class="content">
<div class="header">
Projet Ex4 todoList
</div>
<div class="meta">
Start 12/03/2020 End 21/06/2020
</div>
<div class="description">
Description en details du projet Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nulla
ipsam facilis perferendis voluptatem amet ipsa minus a impedit! Neque fugiat non recusandae odio
porro tenetur voluptates nemo quibusdam quam voluptatem.
</div>
</div>
</div>
<div class="card">
<div class="content">
<div class="header">
Jenny Hess
</div>
<div class="meta">
New Member
</div>
<div class="description">
Jenny wants to add you to the group <b>best friends</b>
</div>
</div>
</div>
</div>
</div>
</div>
63 changes: 0 additions & 63 deletions app/templates/profil.hbs

This file was deleted.

0 comments on commit c994d18

Please sign in to comment.