mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 10:21:00 +00:00
Update build details - show author
This commit is contained in:
parent
34c170500a
commit
0531b105db
4 changed files with 31 additions and 8 deletions
|
@ -16,9 +16,15 @@ export class Details extends Component {
|
||||||
|
|
||||||
<section className={styles.message} style={{ whiteSpace: "pre-line" }}>
|
<section className={styles.message} style={{ whiteSpace: "pre-line" }}>
|
||||||
{build.message}
|
{build.message}
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
<div className={styles.author}>
|
||||||
|
<img src={build.author_avatar} />
|
||||||
|
<span>{build.author}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<BuildTime
|
<BuildTime
|
||||||
start={build.started_at || build.created_at}
|
start={build.started_at || build.created_at}
|
||||||
finish={build.finished_at}
|
finish={build.finished_at}
|
||||||
|
|
|
@ -15,3 +15,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.author {
|
||||||
|
display: flex;
|
||||||
|
height: 30px;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.author img {
|
||||||
|
border-radius: 50%;
|
||||||
|
height: 16px;
|
||||||
|
width: 16px;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.author span {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
|
@ -17,7 +17,7 @@ export class Item extends Component {
|
||||||
return (
|
return (
|
||||||
<div className={styles.item}>
|
<div className={styles.item}>
|
||||||
<div className={styles.icon}>
|
<div className={styles.icon}>
|
||||||
<img src={build.author_avatar} />
|
<img src={build.author_avatar} title={build.author} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.body}>
|
<div className={styles.body}>
|
||||||
|
|
|
@ -99,17 +99,17 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
margin-left: 10px;
|
margin-left: 8px;
|
||||||
margin-right: 20px;
|
margin-right: 18px;
|
||||||
max-width: 22px;
|
max-width: 26px;
|
||||||
min-width: 22px;
|
min-width: 26px;
|
||||||
width: 22px;
|
width: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon img {
|
.icon img {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
height: 22px;
|
height: 26px;
|
||||||
width: 22px;
|
width: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status {
|
.status {
|
||||||
|
|
Loading…
Reference in a new issue