From 3b7ed0dfba15c5e3199ead54d4943e616577d574 Mon Sep 17 00:00:00 2001
From: Winarto <13515061@std.stei.itb.ac.id>
Date: Wed, 25 Apr 2018 21:24:39 +0700
Subject: [PATCH] edit readme, date format & ci

---
 .gitlab-ci.yml                                |  4 +-
 readme.md                                     | 91 ++++++++-----------
 resources/views/article.blade.php             |  2 +-
 resources/views/dashboard-user.blade.php      |  2 +-
 resources/views/home.blade.php                |  2 +-
 resources/views/layouts/app.blade.php         |  1 +
 resources/views/layouts/apphome.blade.php     |  2 +-
 resources/views/showarticle.blade.php         |  4 +-
 .../views/users/qna/showeachanswer.blade.php  |  4 +-
 .../users/qna/showeachquestion.blade.php      |  4 +-
 .../views/users/qna/showquestion.blade.php    |  4 +-
 11 files changed, 51 insertions(+), 69 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bcdaf8e..0734443 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -56,7 +56,7 @@ before_script:
 test:
   stage: test
   script:
-    - php vendor/bin/phpunit --coverage-text --coverage-html ./report
+    - php vendor/bin/phpunit --coverage-text --colors=never --coverage-html ./report
   artifacts:
     paths:
     - report/
@@ -73,4 +73,4 @@ pages:
       - public
     expire_in: 30days
   only:
-    - test_ci
+    - master
diff --git a/readme.md b/readme.md
index 5e90f48..036270a 100644
--- a/readme.md
+++ b/readme.md
@@ -1,59 +1,40 @@
-<p align="center"><img src="https://laravel.com/assets/img/components/logo-laravel.svg"></p>
+<p align="center"><img src="http://icici-bme.itb.ac.id/wp-content/uploads/STEI-ITB-with-text-Habibur-237x300.png"><b>Web Alumni STEI</b></p>
 
 <p align="center">
-<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
-<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a>
-<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a>
-<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a>
+<a href="http://gitlab.informatika.org/IF3250-2018-K01-I-4/WebAlumniSTEI/commits/master"><img alt="pipeline status" src="http://gitlab.informatika.org/IF3250-2018-K01-I-4/WebAlumniSTEI/badges/master/pipeline.svg" /></a>
+<a href="http://gitlab.informatika.org/IF3250-2018-K01-I-4/WebAlumniSTEI/commits/master"><img alt="coverage report" src="http://gitlab.informatika.org/IF3250-2018-K01-I-4/WebAlumniSTEI/badges/master/coverage.svg" /></a>
 </p>
 
-## About Laravel
-
-Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
-
-- [Simple, fast routing engine](https://laravel.com/docs/routing).
-- [Powerful dependency injection container](https://laravel.com/docs/container).
-- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
-- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
-- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
-- [Robust background job processing](https://laravel.com/docs/queues).
-- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
-
-Laravel is accessible, yet powerful, providing tools needed for large, robust applications.
-
-## Learning Laravel
-
-Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.
-
-If you're not in the mood to read, [Laracasts](https://laracasts.com) contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.
-
-## Laravel Sponsors
-
-We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell):
-
-- **[Vehikl](https://vehikl.com/)**
-- **[Tighten Co.](https://tighten.co)**
-- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
-- **[British Software Development](https://www.britishsoftware.co)**
-- [Fragrantica](https://www.fragrantica.com)
-- [SOFTonSOFA](https://softonsofa.com/)
-- [User10](https://user10.com)
-- [Soumettre.fr](https://soumettre.fr/)
-- [CodeBrisk](https://codebrisk.com)
-- [1Forge](https://1forge.com)
-- [TECPRESSO](https://tecpresso.co.jp/)
-- [Pulse Storm](http://www.pulsestorm.net/)
-- [Runtime Converter](http://runtimeconverter.com/)
-- [WebL'Agence](https://weblagence.com/)
-
-## Contributing
-
-Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
-
-## Security Vulnerabilities
-
-If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
-
-## License
-
-The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
+## About Web Alumni STEI
+
+<p>Sekolah Teknik Elektro dan Informatika (STEI-ITB) yang diresmikan pada 1 Januari 2006 merupakan gabungan dua departemen di ITB, yaitu Departemen Teknik Elektro dan Teknik Informatika (SK Rektor No. 012/SK/01/OT/2005). Kedua departemen ini mempunyai sejarah yang panjang dalam penyelenggaraan pendidikan tinggi Teknik Elektro (EL) sejak tahun 1974, dan Teknik Informatika (IF) sejak tahun 1982.</p>
+<p>Seiring dengan perkembangan Kurikulum 2008 dan kebutuhan masyarakat serta industri STEI ITB membuka dan menambah tiga program studi baru. Hal ini dibuktikan dengan terbitnya SK Rektor Nomor : 268/SK/K01/OT/2008 tentang Pembukaan Program Studi Sarjana Teknik Tenaga Listrik, Teknik Telekomunikasi, Sistem dan Teknologi Informasi tanggal 26 nopember 2008. Pada tahun 2016, Program Studi Teknik Biomedika resmi beroperasi. Oleh karena itu saat ini STEI menyelenggarakan pendidikan sejumlah 6 (enam) Program Sarjana Teknik (S1), yaitu Sarjana Teknik Elektro, Sarjana Teknik Informatika, Sarjana Teknik Tenaga Listrik, Sarjana Teknik Telekomunikasi, Sarjana Sistem dan Teknologi Informasi, dan Sarjana Teknik Biomedika yang masing – masing berlangsung 8 semester dengan total kredit 144 SKS. Selain itu STEI ITB juga menyelenggarakan Program Magister Teknik (S2) dan Program Doktor (S3).</p>
+
+## Prerequisites
+- MySQL 5.7 or later
+- PHP 7.2 or later
+- Apache webserver
+- Composer
+- npm
+
+## Instalasi
+```
+- Setup .env
+- composer install
+- composer update
+- npm install
+- npm run dev
+- php artisan storage:link
+- php artisan key:generate
+- php artisan config:cache
+- php artisan migrate
+```
+
+## Authors
+
+- **[Aditya Pratama](http://gitlab.informatika.org/adityapratama)**
+- **[Rachel Sidney Devianti](http://gitlab.informatika.org/crahels)**
+- **[Robby Syaifullah](http://gitlab.informatika.org/robbysyaifullah)**
+- **[Stevanno Hero Leadervand](http://gitlab.informatika.org/stevannohero)**
+- **[Tasya](http://gitlab.informatika.org/agathastellatasya)**
+- **[Winarto](http://gitlab.informatika.org/yowinarto)**
diff --git a/resources/views/article.blade.php b/resources/views/article.blade.php
index 3187a73..df43af7 100644
--- a/resources/views/article.blade.php
+++ b/resources/views/article.blade.php
@@ -71,7 +71,7 @@
                         <div class="col-8 post-card">
                             <h3><a href="/posts/{{$post->id}}">{{$post->title}}</a></h3>
                             <div style="word-wrap: break-word;"> {!!substr($post->body, 0, 200)!!}... </div>
-                            <small style="font-weight: bolder;">Written on {{$post->created_at}} by <span style="color: red">Admin</span></small>
+                            <small style="font-weight: bolder;">Written on {{$post->created_at->format('d M Y')}} by <span style="color: red">Admin</span></small>
                         </div>
                         <div class="col-4 img-card">
                             <img style="width:100%" src="/storage/cover_images/{{$post->cover_image}}">
diff --git a/resources/views/dashboard-user.blade.php b/resources/views/dashboard-user.blade.php
index 7dfa78d..d8ac5fd 100644
--- a/resources/views/dashboard-user.blade.php
+++ b/resources/views/dashboard-user.blade.php
@@ -50,7 +50,7 @@
                     <div class="row">
                         <div class="col-8 post-card">
                             <h3><a href="/posts/{{$post->id}}">{{$post->title}}</a></h3>
-                            <i>Written on {{$post->created_at}} by {{$post->user->name}}</i>
+                            <i>Written on {{$post->created_at->format('d M Y')}} by {{$post->user->name}}</i>
                         </div>
                         <div class="col-4 img-card">
                             <img style="width:100%" src="/storage/cover_images/{{$post->cover_image}}">
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php
index 9d160e1..50d0bb7 100644
--- a/resources/views/home.blade.php
+++ b/resources/views/home.blade.php
@@ -91,7 +91,7 @@
                                             <h1 class="animated1">
                                                 <span>{{$question->topic}}</span>
                                             </h1>
-                                            <p class="animated2">BBB</p>
+                                            {{-- <p class="animated2">{{$question->body}}</p> --}}
                                             <a href="/questions/{{$question->id}}" class="page-scroll btn btn-primary animated3">View question</a>
                                         </div>
                                     </div>
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index aec1005..67e78f0 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -8,6 +8,7 @@
         <link rel="stylesheet" href="{{asset('css/style.css')}}">
         <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
+        <link rel="icon" href="/storage/logo_itb.png" type="image/x-icon"/>
         <title>@yield('title')</title>
 
     <!-- CSRF Token -->
diff --git a/resources/views/layouts/apphome.blade.php b/resources/views/layouts/apphome.blade.php
index 20193a9..9e22efe 100644
--- a/resources/views/layouts/apphome.blade.php
+++ b/resources/views/layouts/apphome.blade.php
@@ -8,7 +8,7 @@
     <meta name="author" content="">
 
     <title>Web Alumni STEI</title>
-
+    <link rel="icon" href="/storage/logo_itb.png" type="image/x-icon"/>
     <!-- Bootstrap Core CSS -->
     <link href="{{ asset('template/asset/css/bootstrap.css') }}" rel="stylesheet">
     
diff --git a/resources/views/showarticle.blade.php b/resources/views/showarticle.blade.php
index f32ebbb..16988fa 100644
--- a/resources/views/showarticle.blade.php
+++ b/resources/views/showarticle.blade.php
@@ -27,8 +27,8 @@
             <!-- FOOTER -->
             <div class="footer-article">
             <hr>
-            <small>Written on {{$post->created_at}}</small><br>
-            <small>Last Editted on {{$post->updated_at}}</small><br>
+            <small>Written on {{$post->created_at->format('d M Y')}}</small><br>
+            <small>Last Editted on {{$post->updated_at->format('d M Y')}}</small><br>
             <small>by Admin</small>
             <hr>
 
diff --git a/resources/views/users/qna/showeachanswer.blade.php b/resources/views/users/qna/showeachanswer.blade.php
index dec70db..0164ed9 100755
--- a/resources/views/users/qna/showeachanswer.blade.php
+++ b/resources/views/users/qna/showeachanswer.blade.php
@@ -39,11 +39,11 @@
                     </tr>
                     <tr>
                         <td>Written On</td>
-                        <td>:&nbsp;{{$answer->created_at}}</td>
+                        <td>:&nbsp;{{$answer->created_at->format('d M Y')}}</td>
                     </tr>
                     <tr>
                         <td>Last Editted On</td>
-                        <td>:&nbsp;{{$answer->updated_at}}</td>
+                        <td>:&nbsp;{{$answer->updated_at->format('d M Y')}}</td>
                     </tr>
                     <tr>
                         <td>Written By</td>
diff --git a/resources/views/users/qna/showeachquestion.blade.php b/resources/views/users/qna/showeachquestion.blade.php
index df3c7e8..b9d5614 100755
--- a/resources/views/users/qna/showeachquestion.blade.php
+++ b/resources/views/users/qna/showeachquestion.blade.php
@@ -10,8 +10,8 @@
                         <h1 style="word-wrap: break-word;">{{$question->topic}}</h1>
                         <div class="body-article" style="font-size:1.5em; word-wrap: break-word;">{{$question->body}}</div>
                         <div class="footer-article"><hr>
-                            <small>Written on {{$question->created_at}}</small><br>
-                            <small>Last Editted on {{$question->updated_at}}</small><br>
+                            <small>Written on {{$question->created_at->format('d M Y')}}</small><br>
+                            <small>Last Editted on {{$question->updated_at->format('d M Y')}}</small><br>
                             <small>
                                 @if ($question->is_anon == 1)
                                     by Anonymous
diff --git a/resources/views/users/qna/showquestion.blade.php b/resources/views/users/qna/showquestion.blade.php
index a39f250..20e4947 100755
--- a/resources/views/users/qna/showquestion.blade.php
+++ b/resources/views/users/qna/showquestion.blade.php
@@ -79,7 +79,7 @@
                                 <p style="font-size: 1.3em; word-wrap: break-word;">{{$question->body}}</p>
                                 <small>
                                     <i>
-                                        Written on {{$question->created_at}} 
+                                        Written on {{$question->created_at->format('d M Y')}} 
                                         @if ($question->is_anon == 1)
                                             by Anonymous
                                         @else
@@ -111,7 +111,7 @@
                                     <span style="word-wrap: break-word;">{{$answer->body}}</span><br>
                                     <a href="/answers/{{$answer->id}}">
                                         <small>
-                                            Written on {{$answer->created_at}}
+                                            Written on {{$answer->created_at->format('d M Y')}}
                                         </small>
                                     </a>
                                     @if ($answer->is_admin == 1)
-- 
GitLab