Skip to content

Commit

Permalink
Merge branch 'dev-hiresuit' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
nithinjohn22 committed Jan 9, 2025
2 parents 0203844 + 58e3b3e commit 1a6877e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
11 changes: 8 additions & 3 deletions admin/class-awsm-job-openings-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,14 @@ public function disable_drag_metabox() {

public function awsm_add_unread_application_class( $classes, $class, $post_id ) {
if ( get_post_type( $post_id ) === 'awsm_job_application' ) {
$is_viewed = get_post_meta( $post_id, 'awsm_application_viewed', true ) === '1';
if ( ! $is_viewed ) {
$classes[] = 'awsm-new-job';
$post_status = get_post_status( $post_id );

if ( $post_status === 'publish' ) {
$is_viewed = get_post_meta( $post_id, 'awsm_application_viewed', true ) === '1';

if ( ! $is_viewed ) {
$classes[] = 'awsm-new-job';
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/admin-global.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/admin-global.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions assets/css/admin-global/admin-global.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,9 @@
box-shadow: none;
outline: none;
}
.striped > tbody tr.awsm-new-job{
background-color: #fff5d8;
}
.post-type-awsm_job_application .striped > tbody tr:not(:last-child) > *{
border-bottom: 1px solid #e7e4df;
}

0 comments on commit 1a6877e

Please sign in to comment.